mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Page to track sleeping tickets (requires testing)
SVN:trunk[550]
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
|
||||
*/
|
||||
|
||||
require_once('../core/cmdbobject.class.inc.php');
|
||||
require_once('../application/utils.inc.php');
|
||||
|
||||
MetaModel::Startup(ITOP_CONFIG_FILE);
|
||||
|
||||
@@ -143,6 +143,10 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
'Class:ResponseTicket/Attribute:customer_id+' => '',
|
||||
'Class:ResponseTicket/Attribute:customer_name' => 'Customer',
|
||||
'Class:ResponseTicket/Attribute:customer_name+' => '',
|
||||
'Class:ResponseTicket/Attribute:service_id' => 'Service',
|
||||
'Class:ResponseTicket/Attribute:service_id+' => '',
|
||||
'Class:ResponseTicket/Attribute:servicesubcategory_id' => 'Service element',
|
||||
'Class:ResponseTicket/Attribute:servicesubcategory_id+' => '',
|
||||
'Class:ResponseTicket/Attribute:product' => 'Product',
|
||||
'Class:ResponseTicket/Attribute:product+' => '',
|
||||
'Class:ResponseTicket/Attribute:impact' => 'Impact',
|
||||
@@ -153,7 +157,7 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
'Class:ResponseTicket/Attribute:impact/Value:2+' => '',
|
||||
'Class:ResponseTicket/Attribute:impact/Value:3' => 'A department',
|
||||
'Class:ResponseTicket/Attribute:impact/Value:3+' => '',
|
||||
'Class:ResponseTicket/Attribute:urgency' => 'urgency',
|
||||
'Class:ResponseTicket/Attribute:urgency' => 'Urgency',
|
||||
'Class:ResponseTicket/Attribute:urgency+' => '',
|
||||
'Class:ResponseTicket/Attribute:urgency/Value:1' => 'Low',
|
||||
'Class:ResponseTicket/Attribute:urgency/Value:1+' => '',
|
||||
|
||||
@@ -315,6 +315,17 @@ abstract class ResponseTicket extends Ticket
|
||||
MetaModel::Init_DefineTransition("resolved", "ev_close", array("target_state"=>"closed", "actions"=>array(), "user_restriction"=>null));
|
||||
}
|
||||
|
||||
// Lifecycle actions
|
||||
//
|
||||
public function SetEscalationDeadline()
|
||||
{
|
||||
$this->Set('escalation_deadline', time() + 100);
|
||||
}
|
||||
public function SetClosureDeadline()
|
||||
{
|
||||
$this->Set('closure_deadline', time() + 100);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines the shortest SLT, for this ticket, for the given metric. Returns null is no SLT was found
|
||||
* @param string $sMetric Type of metric 'TTO', 'TTR', etc as defined in the SLT class
|
||||
|
||||
@@ -598,7 +598,6 @@ class WebServices
|
||||
|
||||
try
|
||||
{
|
||||
new CMDBChange();
|
||||
$oMyChange = MetaModel::NewObject("CMDBChange");
|
||||
$oMyChange->Set("date", time());
|
||||
$oMyChange->Set("userinfo", "Administrator");
|
||||
|
||||
Reference in New Issue
Block a user