Ticket * @author Romain Quetiez * @author Denis Flaven * @license http://www.opensource.org/licenses/gpl-3.0.html LGPL */]]> bizmodel,searchable,problemmgmt false autoincrement ticket_problem id %1$s images/problem.png new assigned resolved closed status new false list SELECT Service service_id Service true DEL_MANUAL service_id name service_id]]> servicesubcategory_id ServiceSubcategory true DEL_MANUAL servicesubcategory_id name product true 1 2 3 impact 1 false list 1 2 3 4 emergency 1 false list 1 2 3 4 priority 1 false list related_change_id Change true DEL_MANUAL related_change_id ref assignment_date true resolution_date true KnownError problem_id 0 0 UserRequest parent_problem_id 0 0 status ev_assign assigned SetAssignedDate ev_reassign assigned ev_resolve resolved SetResolveDate ev_reassign assigned ev_close closed SetClosureDate false public LifecycleAction Set('assignment_date', time()); return true; }]]> false public LifecycleAction Set('resolution_date', time()); return true; }]]> false public LifecycleAction Set('close_date', time()); return true; }]]> /** Compute the priority of the ticket based on its impact and emergency * @return integer The priority of the ticket 1(high) .. 3(low) */ false public LifecycleAction array( 1 => 1, 2 => 1, 3 => 2, 4 => 4, ), // a group 2 => array( 1 => 1, 2 => 2, 3 => 3, 4 => 4, ), // a departement! 3 => array( 1 => 2, 2 => 3, 3 => 3, 4 => 4, ), ); $iPriority = $aPriorities[(int)$this->Get('impact')][(int)$this->Get('emergency')]; return $iPriority; }]]> false public Overload-DBObject Set('priority', $this->ComputePriority()); $sCurrRef = $this->Get('ref'); if (strlen($sCurrRef) == 0) { $iKey = $this->GetKey(); if ($iKey < 0) { // Object not yet in the Database $iKey = MetaModel::GetNextKey(get_class($this)); } $sName = sprintf('P-%06d', $iKey); $this->Set('ref', $sName); } }]]> false protected Overload-DBObject Set('start_date', time()); $this->Set('last_update', time()); }]]> false protected Overload-DBObject Set('last_update', time()); }]]>
functionalcis_list contacts_list knownerrors_list workorders_list related_request_list ref title org_id status priority service_id servicesubcategory_id product impact emergency description start_date last_update assignment_date resolution_date close_date caller_id team_id agent_id related_change_id
ref title org_id start_date status service_id servicesubcategory_id product impact emergency priority caller_id team_id agent_id close_date title org_id start_date status service_id priority
42 5 ProblemManagement 0 ProblemManagement overview.xml 1 ProblemManagement Problem 2 ProblemManagement Problem 1 Problem:Shortcuts 2 Problem:Shortcuts 1