Page to track sleeping tickets (requires testing)

SVN:trunk[550]
This commit is contained in:
Romain Quetiez
2010-07-05 06:20:50 +00:00
parent 218ed7036b
commit 300fc8c187
4 changed files with 17 additions and 2 deletions

View File

@@ -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);

View 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+' => '',

View File

@@ -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

View File

@@ -598,7 +598,6 @@ class WebServices
try
{
new CMDBChange();
$oMyChange = MetaModel::NewObject("CMDBChange");
$oMyChange->Set("date", time());
$oMyChange->Set("userinfo", "Administrator");