Ticket
bizmodel,searchable,changemgmt
true
autoincrement
change
id
images/change.png
approved
assigned
closed
implemented
monitored
new
notapproved
plannedscheduled
rejected
validated
status
new
true
reason
true
org_id]]>
requestor_id
Person
true
DEL_MANUAL
requestor_id
email
true
creation_date
true
impact
true
supervisor_group_id
Team
true
DEL_MANUAL
supervisor_group_id
name
true
supervisor_group_id]]>
supervisor_id
Person
true
DEL_MANUAL
false
supervisor_id
email
true
manager_group_id
Team
true
DEL_MANUAL
manager_group_id
name
true
manager_group_id]]>
manager_id
Person
true
DEL_MANUAL
false
manager_id
email
true
yes
no
outage
no
false
fallback
true
id]]>
parent_id
Change
true
DEL_MANUAL
parent_id
ref
true
UserRequest
parent_change_id
add_remove
0
0
Incident
parent_change_id
add_remove
0
0
Problem
related_change_id
add_remove
0
0
Change
parent_id
add_remove
id]]>
0
0
status
-
1
HIGHLIGHT_CLASS_NONE
images/change-approved.png
-
2
HIGHLIGHT_CLASS_NONE
images/change-rejected.png
-
3
HIGHLIGHT_CLASS_NONE
images/change-closed.png
rejected
approved
rejected
approved
approved
closed
false
public
StimulusUserAction
Set('close_date', time());
return true;
}]]>
false
public
LifecycleAction
Set('reason', '');
return true;
}]]>
false
protected
Overload-DBObject
Get('contacts_list');
$oToImpact = $this->Get('functionalcis_list');
$oImpactedInfras = DBObjectSet::FromLinkSet($this, 'functionalcis_list', 'functionalci_id');
$aComputed = $oImpactedInfras->GetRelatedObjects('impacts', 10);
if (isset($aComputed['FunctionalCI']) && is_array($aComputed['FunctionalCI']))
{
foreach($aComputed['FunctionalCI'] as $iKey => $oObject)
{
$oNewLink = new lnkFunctionalCIToTicket();
$oNewLink->Set('functionalci_id', $iKey);
$oToImpact->AddObject($oNewLink);
}
}
if (isset($aComputed['Contact']) && is_array($aComputed['Contact']))
{
foreach($aComputed['Contact'] as $iKey => $oObject)
{
$oNewLink = new lnkContactToTicket();
$oNewLink->Set('contact_id', $iKey);
$oNewLink->Set('role', 'contact automatically computed');
$oToNotify->AddObject($oNewLink);
}
}
$this->Set('creation_date', time());
$this->Set('last_update', time());
}]]>
false
protected
Overload-DBObject
Set('last_update', time());
}]]>
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
10
-
10
-
20
-
30
-
40
-
50
-
20
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
90
-
10
-
10
-
20
-
30
-
40
-
20
-
10
-
100
-
10
-
10
-
20
-
30
-
40
-
50
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
210
-
10
-
20
-
30
-
40
-
50
-
60
-
70
Change
bizmodel,searchable,changemgmt
false
autoincrement
change_routine
id
images/change.png
status
assigned
new
plannedscheduled
assigned
implemented
plannedscheduled
monitored
closed
SetCurrentDate
close_date
implemented
closed
SetCurrentDate
close_date
implemented
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
10
-
10
-
20
-
30
-
40
-
50
-
20
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
90
-
10
-
10
-
20
-
30
-
40
-
20
-
10
-
100
-
10
-
10
-
20
-
30
-
40
-
50
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
210
-
10
-
20
-
30
-
40
-
50
-
60
-
70
Change
bizmodel,searchable,changemgmt
true
autoincrement
change_approved
id
images/change.png
approval_date
true
status
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
10
-
10
-
20
-
30
-
40
-
50
-
20
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
90
-
10
-
10
-
20
-
30
-
40
-
20
-
10
-
100
-
10
-
10
-
20
-
30
-
40
-
50
-
60
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
210
-
220
-
10
-
20
-
30
-
40
-
50
-
60
-
70
ApprovedChange
bizmodel,searchable,changemgmt
false
autoincrement
change_normal
id
images/change.png
acceptance_date
true
status
validated
Reset
reason
rejected
new
assigned
new
new
validated
plannedscheduled
assigned
approved
Reset
reason
notapproved
plannedscheduled
implemented
plannedscheduled
plannedscheduled
approved
monitored
closed
SetCurrentDate
close_date
implemented
closed
SetCurrentDate
close_date
implemented
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
10
-
10
-
20
-
30
-
40
-
50
-
20
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
90
-
10
-
10
-
20
-
30
-
40
-
20
-
10
-
100
-
10
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
210
-
220
-
230
-
10
-
20
-
30
-
40
-
50
-
60
-
70
ApprovedChange
bizmodel,searchable,changemgmt
false
autoincrement
change_emergency
id
images/change.png
status
assigned
new
plannedscheduled
assigned
approved
Reset
reason
notapproved
plannedscheduled
implemented
plannedscheduled
plannedscheduled
approved
monitored
closed
SetCurrentDate
close_date
implemented
closed
SetCurrentDate
close_date
implemented
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
10
-
10
-
20
-
30
-
40
-
50
-
20
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
90
-
10
-
10
-
20
-
30
-
40
-
20
-
10
-
100
-
10
-
10
-
20
-
30
-
40
-
50
-
60
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
210
-
220
-
10
-
20
-
30
-
40
-
50
-
60
-
70