Browse Source

Page to track sleeping tickets (requires testing)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@550 a333f486-631f-4898-b8df-5754b55c2be0
romainq 15 năm trước cách đây
mục cha
commit
25a50b34f1

+ 1 - 0
application/startup.inc.php

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

+ 5 - 1
modules/itop-tickets-1.0.0/en.dict.itop-tickets.php

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

+ 11 - 0
modules/itop-tickets-1.0.0/model.itop-tickets.php

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

+ 0 - 1
webservices/webservices.class.inc.php

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