datamodel.itop-request-mgmt-itil.xml 76 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
  3. <classes>
  4. <class id="UserRequest" _delta="define">
  5. <parent>Ticket</parent>
  6. <properties>
  7. <comment><![CDATA[/**
  8. * Persistent classes for a CMDB
  9. *
  10. * @copyright Copyright (C) 2010-2012 Combodo SARL
  11. * @license http://opensource.org/licenses/AGPL-3.0
  12. */]]></comment>
  13. <category>bizmodel,searchable,requestmgmt</category>
  14. <abstract>false</abstract>
  15. <key_type>autoincrement</key_type>
  16. <db_table>ticket_request</db_table>
  17. <db_key_field>id</db_key_field>
  18. <db_final_class_field/>
  19. <naming>
  20. <format>%1$s</format>
  21. <attributes>
  22. <attribute id="ref"/>
  23. </attributes>
  24. </naming>
  25. <display_template/>
  26. <icon>images/user-request.png</icon>
  27. <reconciliation>
  28. <attributes>
  29. <attribute id="ref"/>
  30. </attributes>
  31. </reconciliation>
  32. <order>
  33. <columns>
  34. <column id="ref" ascending="false"/>
  35. </columns>
  36. </order>
  37. </properties>
  38. <fields>
  39. <field id="status" xsi:type="AttributeEnum">
  40. <values>
  41. <value>new</value>
  42. <value>waiting_for_approval</value>
  43. <value>approved</value>
  44. <value>rejected</value>
  45. <value>assigned</value>
  46. <value>pending</value>
  47. <value>escalated_tto</value>
  48. <value>escalated_ttr</value>
  49. <value>resolved</value>
  50. <value>closed</value>
  51. </values>
  52. <sql>status</sql>
  53. <default_value>new</default_value>
  54. <is_null_allowed>false</is_null_allowed>
  55. </field>
  56. <field id="request_type" xsi:type="AttributeEnum">
  57. <values>
  58. <value>service_request</value>
  59. </values>
  60. <sql>request_type</sql>
  61. <default_value>service_request</default_value>
  62. <is_null_allowed>true</is_null_allowed>
  63. <display_style>list</display_style>
  64. </field>
  65. <field id="impact" xsi:type="AttributeEnum">
  66. <values>
  67. <value>1</value>
  68. <value>2</value>
  69. <value>3</value>
  70. </values>
  71. <sql>impact</sql>
  72. <default_value>1</default_value>
  73. <is_null_allowed>false</is_null_allowed>
  74. <display_style>list</display_style>
  75. </field>
  76. <field id="priority" xsi:type="AttributeEnum">
  77. <values>
  78. <value>1</value>
  79. <value>2</value>
  80. <value>3</value>
  81. <value>4</value>
  82. </values>
  83. <sql>priority</sql>
  84. <default_value>4</default_value>
  85. <is_null_allowed>false</is_null_allowed>
  86. </field>
  87. <field id="urgency" xsi:type="AttributeEnum">
  88. <values>
  89. <value>1</value>
  90. <value>2</value>
  91. <value>3</value>
  92. <value>4</value>
  93. </values>
  94. <sql>urgency</sql>
  95. <default_value>4</default_value>
  96. <is_null_allowed>false</is_null_allowed>
  97. </field>
  98. <field id="origin" xsi:type="AttributeEnum">
  99. <values>
  100. <value>mail</value>
  101. <value>phone</value>
  102. <value>portal</value>
  103. </values>
  104. <sql>origin</sql>
  105. <default_value>phone</default_value>
  106. <is_null_allowed>true</is_null_allowed>
  107. </field>
  108. <field id="approver_id" xsi:type="AttributeExternalKey">
  109. <filter><![CDATA[SELECT Person WHERE org_id= :this->org_id]]></filter>
  110. <dependencies>
  111. <attribute id="org_id"/>
  112. </dependencies>
  113. <sql>approver_id</sql>
  114. <target_class>Person</target_class>
  115. <is_null_allowed>true</is_null_allowed>
  116. <on_target_delete>DEL_MANUAL</on_target_delete>
  117. </field>
  118. <field id="approver_email" xsi:type="AttributeExternalField">
  119. <extkey_attcode>approver_id</extkey_attcode>
  120. <target_attcode>email</target_attcode>
  121. </field>
  122. <field id="service_id" xsi:type="AttributeExternalKey">
  123. <filter><![CDATA[SELECT Service AS s JOIN lnkCustomerContractToService AS l1 ON l1.service_id=s.id JOIN CustomerContract AS cc ON l1.customercontract_id=cc.id WHERE cc.org_id = :this->org_id]]></filter>
  124. <dependencies>
  125. <attribute id="org_id"/>
  126. </dependencies>
  127. <sql>service_id</sql>
  128. <target_class>Service</target_class>
  129. <is_null_allowed>true</is_null_allowed>
  130. <on_target_delete>DEL_MANUAL</on_target_delete>
  131. </field>
  132. <field id="service_name" xsi:type="AttributeExternalField">
  133. <extkey_attcode>service_id</extkey_attcode>
  134. <target_attcode>name</target_attcode>
  135. </field>
  136. <field id="servicesubcategory_id" xsi:type="AttributeExternalKey">
  137. <filter><![CDATA[SELECT ServiceSubcategory WHERE service_id = :this->service_id AND request_type = :this->request_type]]></filter>
  138. <dependencies>
  139. <attribute id="service_id"/>
  140. <attribute id="request_type"/>
  141. </dependencies>
  142. <sql>servicesubcategory_id</sql>
  143. <target_class>ServiceSubcategory</target_class>
  144. <is_null_allowed>true</is_null_allowed>
  145. <on_target_delete>DEL_MANUAL</on_target_delete>
  146. <jointype/>
  147. </field>
  148. <field id="servicesubcategory_name" xsi:type="AttributeExternalField">
  149. <extkey_attcode>servicesubcategory_id</extkey_attcode>
  150. <target_attcode>name</target_attcode>
  151. </field>
  152. <field id="escalation_flag" xsi:type="AttributeEnum">
  153. <values>
  154. <value>yes</value>
  155. <value>no</value>
  156. </values>
  157. <sql>escalation_flag</sql>
  158. <default_value>no</default_value>
  159. <is_null_allowed>true</is_null_allowed>
  160. <display_style>list</display_style>
  161. </field>
  162. <field id="escalation_reason" xsi:type="AttributeString">
  163. <sql>escalation_reason</sql>
  164. <default_value/>
  165. <is_null_allowed>true</is_null_allowed>
  166. </field>
  167. <field id="assignment_date" xsi:type="AttributeDateTime">
  168. <sql>assignment_date</sql>
  169. <default_value/>
  170. <is_null_allowed>true</is_null_allowed>
  171. </field>
  172. <field id="resolution_date" xsi:type="AttributeDateTime">
  173. <sql>resolution_date</sql>
  174. <default_value/>
  175. <is_null_allowed>true</is_null_allowed>
  176. </field>
  177. <field id="last_pending_date" xsi:type="AttributeDateTime">
  178. <sql>last_pending_date</sql>
  179. <default_value/>
  180. <is_null_allowed>true</is_null_allowed>
  181. </field>
  182. <field id="cumulatedpending" xsi:type="AttributeStopWatch">
  183. <states>
  184. <state id="pending"/>
  185. </states>
  186. <working_time/>
  187. <thresholds/>
  188. <goal/>
  189. </field>
  190. <field id="tto" xsi:type="AttributeStopWatch">
  191. <states>
  192. <state id="new"/>
  193. <state id="escalated_tto"/>
  194. </states>
  195. <working_time/>
  196. <goal>ResponseTicketTTO</goal>
  197. <thresholds>
  198. <threshold>
  199. <percent>75</percent>
  200. <actions>
  201. </actions>
  202. </threshold>
  203. <threshold>
  204. <percent>100</percent>
  205. <actions>
  206. <action>
  207. <verb>ApplyStimulus</verb>
  208. <params>
  209. <param>ev_timeout</param>
  210. </params>
  211. </action>
  212. </actions>
  213. </threshold>
  214. </thresholds>
  215. </field>
  216. <field id="ttr" xsi:type="AttributeStopWatch">
  217. <states>
  218. <state id="new"/>
  219. <state id="escalated_tto"/>
  220. <state id="assigned"/>
  221. <state id="approved"/>
  222. <state id="escalated_ttr"/>
  223. </states>
  224. <working_time/>
  225. <goal>ResponseTicketTTR</goal>
  226. <thresholds>
  227. <threshold>
  228. <percent>75</percent>
  229. <actions>
  230. </actions>
  231. </threshold>
  232. <threshold>
  233. <percent>100</percent>
  234. <actions>
  235. <action>
  236. <verb>ApplyStimulus</verb>
  237. <params>
  238. <param>ev_timeout</param>
  239. </params>
  240. </action>
  241. </actions>
  242. </threshold>
  243. </thresholds>
  244. </field>
  245. <field id="tto_escalation_deadline" xsi:type="AttributeSubItem">
  246. <target_attcode>tto</target_attcode>
  247. <item_code>100_deadline</item_code>
  248. </field>
  249. <field id="sla_tto_passed" xsi:type="AttributeSubItem">
  250. <target_attcode>tto</target_attcode>
  251. <item_code>100_passed</item_code>
  252. </field>
  253. <field id="sla_tto_over" xsi:type="AttributeSubItem">
  254. <target_attcode>tto</target_attcode>
  255. <item_code>100_overrun</item_code>
  256. </field>
  257. <field id="ttr_escalation_deadline" xsi:type="AttributeSubItem">
  258. <target_attcode>ttr</target_attcode>
  259. <item_code>100_deadline</item_code>
  260. </field>
  261. <field id="sla_ttr_passed" xsi:type="AttributeSubItem">
  262. <target_attcode>ttr</target_attcode>
  263. <item_code>100_passed</item_code>
  264. </field>
  265. <field id="sla_ttr_over" xsi:type="AttributeSubItem">
  266. <target_attcode>ttr</target_attcode>
  267. <item_code>100_overrun</item_code>
  268. </field>
  269. <field id="time_spent" xsi:type="AttributeDuration">
  270. <sql>time_spent</sql>
  271. <default_value/>
  272. <is_null_allowed>true</is_null_allowed>
  273. </field>
  274. <field id="resolution_code" xsi:type="AttributeEnum">
  275. <values>
  276. <value>assistance</value>
  277. <value>other</value>
  278. <value>software patch</value>
  279. <value>training</value>
  280. <value>hardware repair</value>
  281. <value>system update</value>
  282. <value>bug fixed</value>
  283. </values>
  284. <sql>resolution_code</sql>
  285. <default_value>assistance</default_value>
  286. <is_null_allowed>true</is_null_allowed>
  287. </field>
  288. <field id="solution" xsi:type="AttributeText">
  289. <sql>solution</sql>
  290. <default_value/>
  291. <is_null_allowed>true</is_null_allowed>
  292. </field>
  293. <field id="pending_reason" xsi:type="AttributeText">
  294. <sql>pending_reason</sql>
  295. <default_value/>
  296. <is_null_allowed>true</is_null_allowed>
  297. </field>
  298. <field id="parent_request_id" xsi:type="AttributeExternalKey">
  299. <filter><![CDATA[SELECT UserRequest WHERE id != :this->id AND status NOT IN ('rejected','resolved','closed')]]></filter>
  300. <dependencies>
  301. <attribute id="service_id"/>
  302. </dependencies>
  303. <sql>parent_request_id</sql>
  304. <target_class>UserRequest</target_class>
  305. <is_null_allowed>true</is_null_allowed>
  306. <on_target_delete>DEL_MANUAL</on_target_delete>
  307. </field>
  308. <field id="parent_request_ref" xsi:type="AttributeExternalField">
  309. <extkey_attcode>parent_request_id</extkey_attcode>
  310. <target_attcode>ref</target_attcode>
  311. </field>
  312. <field id="parent_incident_id" xsi:type="AttributeExternalKey">
  313. <filter><![CDATA[SELECT Incident WHERE status != "closed"]]></filter>
  314. <sql>parent_incident_id</sql>
  315. <target_class>Incident</target_class>
  316. <is_null_allowed>true</is_null_allowed>
  317. <on_target_delete>DEL_MANUAL</on_target_delete>
  318. </field>
  319. <field id="parent_incident_ref" xsi:type="AttributeExternalField">
  320. <extkey_attcode>parent_incident_id</extkey_attcode>
  321. <target_attcode>ref</target_attcode>
  322. </field>
  323. <field id="parent_problem_id" xsi:type="AttributeExternalKey">
  324. <filter><![CDATA[SELECT Problem WHERE status != "closed"]]></filter>
  325. <sql>parent_problem_id</sql>
  326. <target_class>Problem</target_class>
  327. <is_null_allowed>true</is_null_allowed>
  328. <on_target_delete>DEL_MANUAL</on_target_delete>
  329. </field>
  330. <field id="parent_problem_ref" xsi:type="AttributeExternalField">
  331. <extkey_attcode>parent_problem_id</extkey_attcode>
  332. <target_attcode>ref</target_attcode>
  333. </field>
  334. <field id="parent_change_id" xsi:type="AttributeExternalKey">
  335. <filter><![CDATA[SELECT Change WHERE status != "closed"]]></filter>
  336. <sql>parent_change_id</sql>
  337. <target_class>Change</target_class>
  338. <is_null_allowed>true</is_null_allowed>
  339. <on_target_delete>DEL_MANUAL</on_target_delete>
  340. </field>
  341. <field id="parent_change_ref" xsi:type="AttributeExternalField">
  342. <extkey_attcode>parent_change_id</extkey_attcode>
  343. <target_attcode>ref</target_attcode>
  344. </field>
  345. <field id="related_request_list" xsi:type="AttributeLinkedSet">
  346. <linked_class>UserRequest</linked_class>
  347. <ext_key_to_me>parent_request_id</ext_key_to_me>
  348. <edit_mode>none</edit_mode>
  349. <count_min>0</count_min>
  350. <count_max>0</count_max>
  351. </field>
  352. <field id="public_log" xsi:type="AttributeCaseLog">
  353. <sql>public_log</sql>
  354. <default_value/>
  355. <is_null_allowed>true</is_null_allowed>
  356. </field>
  357. <field id="user_satisfaction" xsi:type="AttributeEnum">
  358. <values>
  359. <value>1</value>
  360. <value>2</value>
  361. <value>3</value>
  362. <value>4</value>
  363. </values>
  364. <sql>user_satisfaction</sql>
  365. <default_value>1</default_value>
  366. <is_null_allowed>true</is_null_allowed>
  367. </field>
  368. <field id="user_comment" xsi:type="AttributeText">
  369. <sql>user_commment</sql>
  370. <default_value/>
  371. <is_null_allowed>true</is_null_allowed>
  372. </field>
  373. </fields>
  374. <lifecycle>
  375. <attribute>status</attribute>
  376. <stimuli>
  377. <stimulus id="ev_assign" xsi:type="StimulusUserAction"/>
  378. <stimulus id="ev_reassign" xsi:type="StimulusUserAction"/>
  379. <stimulus id="ev_approve" xsi:type="StimulusUserAction"/>
  380. <stimulus id="ev_reject" xsi:type="StimulusUserAction"/>
  381. <stimulus id="ev_pending" xsi:type="StimulusUserAction"/>
  382. <stimulus id="ev_timeout" xsi:type="StimulusInternal"/>
  383. <stimulus id="ev_autoresolve" xsi:type="StimulusInternal"/>
  384. <stimulus id="ev_autoclose" xsi:type="StimulusInternal"/>
  385. <stimulus id="ev_resolve" xsi:type="StimulusUserAction"/>
  386. <stimulus id="ev_close" xsi:type="StimulusUserAction"/>
  387. <stimulus id="ev_reopen" xsi:type="StimulusUserAction"/>
  388. <stimulus id="ev_wait_for_approval" xsi:type="StimulusUserAction"/>
  389. </stimuli>
  390. <states>
  391. <state id="new">
  392. <flags>
  393. <attribute id="ref">
  394. <read_only/>
  395. </attribute>
  396. <attribute id="org_id">
  397. <mandatory/>
  398. </attribute>
  399. <attribute id="caller_id">
  400. <mandatory/>
  401. </attribute>
  402. <attribute id="team_id">
  403. <hidden/>
  404. </attribute>
  405. <attribute id="agent_id">
  406. <hidden/>
  407. </attribute>
  408. <attribute id="priority">
  409. <read_only/>
  410. </attribute>
  411. <attribute id="start_date">
  412. <read_only/>
  413. </attribute>
  414. <attribute id="last_update">
  415. <read_only/>
  416. </attribute>
  417. <attribute id="close_date">
  418. <hidden/>
  419. </attribute>
  420. <attribute id="approver_id">
  421. <hidden/>
  422. </attribute>
  423. <attribute id="request_type">
  424. <read_only/>
  425. </attribute>
  426. <attribute id="escalation_flag">
  427. <hidden/>
  428. </attribute>
  429. <attribute id="escalation_reason">
  430. <hidden/>
  431. </attribute>
  432. <attribute id="assignment_date">
  433. <hidden/>
  434. </attribute>
  435. <attribute id="resolution_date">
  436. <hidden/>
  437. </attribute>
  438. <attribute id="last_pending_date">
  439. <hidden/>
  440. </attribute>
  441. <attribute id="time_spent">
  442. <hidden/>
  443. </attribute>
  444. <attribute id="resolution_code">
  445. <hidden/>
  446. </attribute>
  447. <attribute id="solution">
  448. <hidden/>
  449. </attribute>
  450. <attribute id="pending_reason">
  451. <hidden/>
  452. </attribute>
  453. <attribute id="user_satisfaction">
  454. <hidden/>
  455. </attribute>
  456. <attribute id="user_comment">
  457. <hidden/>
  458. </attribute>
  459. <attribute id="tto_escalation_deadline">
  460. <read_only/>
  461. </attribute>
  462. <attribute id="sla_tto_passed">
  463. <hidden/>
  464. </attribute>
  465. <attribute id="sla_tto_over">
  466. <hidden/>
  467. </attribute>
  468. <attribute id="sla_ttr_passed">
  469. <hidden/>
  470. </attribute>
  471. <attribute id="ttr_escalation_deadline">
  472. <hidden/>
  473. </attribute>
  474. <attribute id="sla_ttr_over">
  475. <hidden/>
  476. </attribute>
  477. </flags>
  478. <transitions>
  479. <transition>
  480. <stimulus>ev_assign</stimulus>
  481. <target>assigned</target>
  482. <actions>
  483. <action>
  484. <verb>SetAssignedDate</verb>
  485. </action>
  486. </actions>
  487. </transition>
  488. <transition>
  489. <stimulus>ev_timeout</stimulus>
  490. <target>escalated_tto</target>
  491. <actions/>
  492. </transition>
  493. <transition>
  494. <stimulus>ev_wait_for_approval</stimulus>
  495. <target>waiting_for_approval</target>
  496. <actions/>
  497. </transition>
  498. <transition>
  499. <stimulus>ev_autoresolve</stimulus>
  500. <target>resolved</target>
  501. <actions>
  502. <action>
  503. <verb>SetResolveDate</verb>
  504. </action>
  505. <action>
  506. <verb>resolveChilds</verb>
  507. </action>
  508. </actions>
  509. </transition>
  510. </transitions>
  511. </state>
  512. <state id="escalated_tto">
  513. <flags>
  514. <attribute id="ref">
  515. <read_only/>
  516. </attribute>
  517. <attribute id="org_id">
  518. <mandatory/>
  519. </attribute>
  520. <attribute id="caller_id">
  521. <mandatory/>
  522. </attribute>
  523. <attribute id="agent_id">
  524. <hidden/>
  525. </attribute>
  526. <attribute id="priority">
  527. <read_only/>
  528. </attribute>
  529. <attribute id="start_date">
  530. <read_only/>
  531. </attribute>
  532. <attribute id="last_update">
  533. <read_only/>
  534. </attribute>
  535. <attribute id="close_date">
  536. <hidden/>
  537. </attribute>
  538. <attribute id="approver_id">
  539. <hidden/>
  540. </attribute>
  541. <attribute id="request_type">
  542. <read_only/>
  543. </attribute>
  544. <attribute id="escalation_flag">
  545. <hidden/>
  546. </attribute>
  547. <attribute id="escalation_reason">
  548. <hidden/>
  549. </attribute>
  550. <attribute id="assignment_date">
  551. <hidden/>
  552. </attribute>
  553. <attribute id="resolution_date">
  554. <hidden/>
  555. </attribute>
  556. <attribute id="last_pending_date">
  557. <hidden/>
  558. </attribute>
  559. <attribute id="time_spent">
  560. <hidden/>
  561. </attribute>
  562. <attribute id="resolution_code">
  563. <hidden/>
  564. </attribute>
  565. <attribute id="solution">
  566. <hidden/>
  567. </attribute>
  568. <attribute id="pending_reason">
  569. <hidden/>
  570. </attribute>
  571. <attribute id="user_satisfaction">
  572. <hidden/>
  573. </attribute>
  574. <attribute id="user_comment">
  575. <hidden/>
  576. </attribute>
  577. <attribute id="tto_escalation_deadline">
  578. <read_only/>
  579. </attribute>
  580. <attribute id="sla_tto_passed">
  581. <hidden/>
  582. </attribute>
  583. <attribute id="sla_tto_over">
  584. <hidden/>
  585. </attribute>
  586. <attribute id="sla_ttr_passed">
  587. <hidden/>
  588. </attribute>
  589. <attribute id="ttr_escalation_deadline">
  590. <hidden/>
  591. </attribute>
  592. <attribute id="sla_ttr_over">
  593. <hidden/>
  594. </attribute>
  595. </flags>
  596. <transitions>
  597. <transition>
  598. <stimulus>ev_assign</stimulus>
  599. <target>assigned</target>
  600. <actions>
  601. <action>
  602. <verb>SetAssignedDate</verb>
  603. </action>
  604. </actions>
  605. </transition>
  606. </transitions>
  607. </state>
  608. <state id="assigned">
  609. <flags>
  610. <attribute id="ref">
  611. <read_only/>
  612. </attribute>
  613. <attribute id="org_id">
  614. <mandatory/>
  615. </attribute>
  616. <attribute id="team_id">
  617. <mandatory/>
  618. <must_prompt/>
  619. </attribute>
  620. <attribute id="agent_id">
  621. <mandatory/>
  622. <must_prompt/>
  623. </attribute>
  624. <attribute id="priority">
  625. <read_only/>
  626. </attribute>
  627. <attribute id="start_date">
  628. <read_only/>
  629. </attribute>
  630. <attribute id="last_update">
  631. <read_only/>
  632. </attribute>
  633. <attribute id="close_date">
  634. <hidden/>
  635. </attribute>
  636. <attribute id="request_type">
  637. <read_only/>
  638. </attribute>
  639. <attribute id="approver_id">
  640. <read_only/>
  641. </attribute>
  642. <attribute id="assignment_date">
  643. <read_only/>
  644. </attribute>
  645. <attribute id="resolution_date">
  646. <hidden/>
  647. </attribute>
  648. <attribute id="last_pending_date">
  649. <hidden/>
  650. </attribute>
  651. <attribute id="time_spent">
  652. <hidden/>
  653. </attribute>
  654. <attribute id="resolution_code">
  655. <hidden/>
  656. </attribute>
  657. <attribute id="solution">
  658. <hidden/>
  659. </attribute>
  660. <attribute id="pending_reason">
  661. <hidden/>
  662. </attribute>
  663. <attribute id="user_satisfaction">
  664. <hidden/>
  665. </attribute>
  666. <attribute id="user_comment">
  667. <hidden/>
  668. </attribute>
  669. <attribute id="tto_escalation_deadline">
  670. <hidden/>
  671. </attribute>
  672. <attribute id="sla_tto_passed">
  673. <read_only/>
  674. </attribute>
  675. <attribute id="sla_tto_over">
  676. <read_only/>
  677. </attribute>
  678. <attribute id="sla_ttr_passed">
  679. <hidden/>
  680. </attribute>
  681. <attribute id="ttr_escalation_deadline">
  682. <read_only/>
  683. </attribute>
  684. <attribute id="sla_ttr_over">
  685. <hidden/>
  686. </attribute>
  687. </flags>
  688. <transitions>
  689. <transition>
  690. <stimulus>ev_pending</stimulus>
  691. <target>pending</target>
  692. <actions>
  693. <action>
  694. <verb>SetLastPendingDate</verb>
  695. </action>
  696. </actions>
  697. </transition>
  698. <transition>
  699. <stimulus>ev_resolve</stimulus>
  700. <target>resolved</target>
  701. <actions>
  702. <action>
  703. <verb>SetResolveDate</verb>
  704. </action>
  705. <action>
  706. <verb>resolveChilds</verb>
  707. </action>
  708. </actions>
  709. </transition>
  710. <transition>
  711. <stimulus>ev_reassign</stimulus>
  712. <target>assigned</target>
  713. <actions/>
  714. </transition>
  715. <transition>
  716. <stimulus>ev_autoresolve</stimulus>
  717. <target>resolved</target>
  718. <actions>
  719. <action>
  720. <verb>SetResolveDate</verb>
  721. </action>
  722. <action>
  723. <verb>resolveChilds</verb>
  724. </action>
  725. </actions>
  726. </transition>
  727. </transitions>
  728. </state>
  729. <state id="escalated_ttr">
  730. <flags>
  731. <attribute id="ref">
  732. <read_only/>
  733. </attribute>
  734. <attribute id="org_id">
  735. <mandatory/>
  736. </attribute>
  737. <attribute id="team_id">
  738. <mandatory/>
  739. </attribute>
  740. <attribute id="agent_id">
  741. <mandatory/>
  742. </attribute>
  743. <attribute id="priority">
  744. <read_only/>
  745. </attribute>
  746. <attribute id="start_date">
  747. <read_only/>
  748. </attribute>
  749. <attribute id="last_update">
  750. <read_only/>
  751. </attribute>
  752. <attribute id="close_date">
  753. <hidden/>
  754. </attribute>
  755. <attribute id="request_type">
  756. <read_only/>
  757. </attribute>
  758. <attribute id="approver_id">
  759. <read_only/>
  760. </attribute>
  761. <attribute id="assignment_date">
  762. <read_only/>
  763. </attribute>
  764. <attribute id="resolution_date">
  765. <hidden/>
  766. </attribute>
  767. <attribute id="last_pending_date">
  768. <hidden/>
  769. </attribute>
  770. <attribute id="time_spent">
  771. <hidden/>
  772. </attribute>
  773. <attribute id="resolution_code">
  774. <hidden/>
  775. </attribute>
  776. <attribute id="solution">
  777. <hidden/>
  778. </attribute>
  779. <attribute id="pending_reason">
  780. <hidden/>
  781. </attribute>
  782. <attribute id="user_satisfaction">
  783. <hidden/>
  784. </attribute>
  785. <attribute id="user_comment">
  786. <hidden/>
  787. </attribute>
  788. <attribute id="tto_escalation_deadline">
  789. <hidden/>
  790. </attribute>
  791. <attribute id="sla_tto_passed">
  792. <read_only/>
  793. </attribute>
  794. <attribute id="sla_tto_over">
  795. <read_only/>
  796. </attribute>
  797. <attribute id="sla_ttr_passed">
  798. <hidden/>
  799. </attribute>
  800. <attribute id="ttr_escalation_deadline">
  801. <read_only/>
  802. </attribute>
  803. <attribute id="sla_ttr_over">
  804. <hidden/>
  805. </attribute>
  806. </flags>
  807. <transitions/>
  808. </state>
  809. <state id="waiting_for_approval">
  810. <flags>
  811. <attribute id="ref">
  812. <read_only/>
  813. </attribute>
  814. <attribute id="org_id">
  815. <mandatory/>
  816. </attribute>
  817. <attribute id="caller_id">
  818. <mandatory/>
  819. </attribute>
  820. <attribute id="agent_id">
  821. <hidden/>
  822. </attribute>
  823. <attribute id="priority">
  824. <read_only/>
  825. </attribute>
  826. <attribute id="start_date">
  827. <read_only/>
  828. </attribute>
  829. <attribute id="last_update">
  830. <read_only/>
  831. </attribute>
  832. <attribute id="close_date">
  833. <hidden/>
  834. </attribute>
  835. <attribute id="approver_id">
  836. <must_prompt/>
  837. </attribute>
  838. <attribute id="request_type">
  839. <read_only/>
  840. </attribute>
  841. <attribute id="escalation_flag">
  842. <hidden/>
  843. </attribute>
  844. <attribute id="escalation_reason">
  845. <hidden/>
  846. </attribute>
  847. <attribute id="assignment_date">
  848. <hidden/>
  849. </attribute>
  850. <attribute id="resolution_date">
  851. <hidden/>
  852. </attribute>
  853. <attribute id="last_pending_date">
  854. <hidden/>
  855. </attribute>
  856. <attribute id="time_spent">
  857. <hidden/>
  858. </attribute>
  859. <attribute id="resolution_code">
  860. <hidden/>
  861. </attribute>
  862. <attribute id="solution">
  863. <hidden/>
  864. </attribute>
  865. <attribute id="pending_reason">
  866. <hidden/>
  867. </attribute>
  868. <attribute id="user_satisfaction">
  869. <hidden/>
  870. </attribute>
  871. <attribute id="user_comment">
  872. <hidden/>
  873. </attribute>
  874. <attribute id="tto_escalation_deadline">
  875. <read_only/>
  876. </attribute>
  877. <attribute id="sla_tto_passed">
  878. <hidden/>
  879. </attribute>
  880. <attribute id="sla_tto_over">
  881. <hidden/>
  882. </attribute>
  883. <attribute id="sla_ttr_passed">
  884. <hidden/>
  885. </attribute>
  886. <attribute id="ttr_escalation_deadline">
  887. <hidden/>
  888. </attribute>
  889. <attribute id="sla_ttr_over">
  890. <hidden/>
  891. </attribute>
  892. </flags>
  893. <transitions>
  894. <transition>
  895. <stimulus>ev_approve</stimulus>
  896. <target>approved</target>
  897. <actions/>
  898. </transition>
  899. <transition>
  900. <stimulus>ev_reject</stimulus>
  901. <target>rejected</target>
  902. <actions/>
  903. </transition>
  904. </transitions>
  905. </state>
  906. <state id="approved">
  907. <flags>
  908. <attribute id="ref">
  909. <read_only/>
  910. </attribute>
  911. <attribute id="org_id">
  912. <mandatory/>
  913. </attribute>
  914. <attribute id="caller_id">
  915. <mandatory/>
  916. </attribute>
  917. <attribute id="agent_id">
  918. <hidden/>
  919. </attribute>
  920. <attribute id="priority">
  921. <read_only/>
  922. </attribute>
  923. <attribute id="start_date">
  924. <read_only/>
  925. </attribute>
  926. <attribute id="last_update">
  927. <read_only/>
  928. </attribute>
  929. <attribute id="close_date">
  930. <hidden/>
  931. </attribute>
  932. <attribute id="approver_id">
  933. <read_only/>
  934. </attribute>
  935. <attribute id="request_type">
  936. <read_only/>
  937. </attribute>
  938. <attribute id="escalation_flag">
  939. <hidden/>
  940. </attribute>
  941. <attribute id="escalation_reason">
  942. <hidden/>
  943. </attribute>
  944. <attribute id="assignment_date">
  945. <hidden/>
  946. </attribute>
  947. <attribute id="resolution_date">
  948. <hidden/>
  949. </attribute>
  950. <attribute id="last_pending_date">
  951. <hidden/>
  952. </attribute>
  953. <attribute id="time_spent">
  954. <hidden/>
  955. </attribute>
  956. <attribute id="resolution_code">
  957. <hidden/>
  958. </attribute>
  959. <attribute id="solution">
  960. <hidden/>
  961. </attribute>
  962. <attribute id="pending_reason">
  963. <hidden/>
  964. </attribute>
  965. <attribute id="user_satisfaction">
  966. <hidden/>
  967. </attribute>
  968. <attribute id="user_comment">
  969. <hidden/>
  970. </attribute>
  971. <attribute id="tto_escalation_deadline">
  972. <read_only/>
  973. </attribute>
  974. <attribute id="sla_tto_passed">
  975. <hidden/>
  976. </attribute>
  977. <attribute id="sla_tto_over">
  978. <hidden/>
  979. </attribute>
  980. <attribute id="sla_ttr_passed">
  981. <hidden/>
  982. </attribute>
  983. <attribute id="ttr_escalation_deadline">
  984. <hidden/>
  985. </attribute>
  986. <attribute id="sla_ttr_over">
  987. <hidden/>
  988. </attribute>
  989. </flags>
  990. <transitions>
  991. <transition>
  992. <stimulus>ev_timeout</stimulus>
  993. <target>escalated_tto</target>
  994. <actions/>
  995. </transition>
  996. <transition>
  997. <stimulus>ev_assign</stimulus>
  998. <target>assigned</target>
  999. <actions>
  1000. <action>
  1001. <verb>SetAssignedDate</verb>
  1002. </action>
  1003. </actions>
  1004. </transition>
  1005. <transition>
  1006. <stimulus>ev_autoresolve</stimulus>
  1007. <target>resolved</target>
  1008. <actions>
  1009. <action>
  1010. <verb>SetResolveDate</verb>
  1011. </action>
  1012. <action>
  1013. <verb>resolveChilds</verb>
  1014. </action>
  1015. </actions>
  1016. </transition>
  1017. </transitions>
  1018. </state>
  1019. <state id="rejected">
  1020. <flags>
  1021. <attribute id="ref">
  1022. <read_only/>
  1023. </attribute>
  1024. <attribute id="org_id">
  1025. <mandatory/>
  1026. </attribute>
  1027. <attribute id="caller_id">
  1028. <mandatory/>
  1029. </attribute>
  1030. <attribute id="agent_id">
  1031. <hidden/>
  1032. </attribute>
  1033. <attribute id="priority">
  1034. <read_only/>
  1035. </attribute>
  1036. <attribute id="start_date">
  1037. <read_only/>
  1038. </attribute>
  1039. <attribute id="last_update">
  1040. <read_only/>
  1041. </attribute>
  1042. <attribute id="close_date">
  1043. <hidden/>
  1044. </attribute>
  1045. <attribute id="approver_id">
  1046. <hidden/>
  1047. </attribute>
  1048. <attribute id="request_type">
  1049. <read_only/>
  1050. </attribute>
  1051. <attribute id="escalation_flag">
  1052. <hidden/>
  1053. </attribute>
  1054. <attribute id="escalation_reason">
  1055. <hidden/>
  1056. </attribute>
  1057. <attribute id="assignment_date">
  1058. <hidden/>
  1059. </attribute>
  1060. <attribute id="resolution_date">
  1061. <hidden/>
  1062. </attribute>
  1063. <attribute id="last_pending_date">
  1064. <hidden/>
  1065. </attribute>
  1066. <attribute id="time_spent">
  1067. <hidden/>
  1068. </attribute>
  1069. <attribute id="resolution_code">
  1070. <hidden/>
  1071. </attribute>
  1072. <attribute id="solution">
  1073. <hidden/>
  1074. </attribute>
  1075. <attribute id="pending_reason">
  1076. <hidden/>
  1077. </attribute>
  1078. <attribute id="user_satisfaction">
  1079. <hidden/>
  1080. </attribute>
  1081. <attribute id="user_comment">
  1082. <hidden/>
  1083. </attribute>
  1084. <attribute id="tto_escalation_deadline">
  1085. <hidden/>
  1086. </attribute>
  1087. <attribute id="sla_tto_passed">
  1088. <hidden/>
  1089. </attribute>
  1090. <attribute id="sla_tto_over">
  1091. <hidden/>
  1092. </attribute>
  1093. <attribute id="sla_ttr_passed">
  1094. <hidden/>
  1095. </attribute>
  1096. <attribute id="ttr_escalation_deadline">
  1097. <hidden/>
  1098. </attribute>
  1099. <attribute id="sla_ttr_over">
  1100. <hidden/>
  1101. </attribute>
  1102. </flags>
  1103. <transitions>
  1104. <transition>
  1105. <stimulus>ev_reopen</stimulus>
  1106. <target>new</target>
  1107. <actions/>
  1108. </transition>
  1109. </transitions>
  1110. </state>
  1111. <state id="pending">
  1112. <flags>
  1113. <attribute id="ref">
  1114. <read_only/>
  1115. </attribute>
  1116. <attribute id="org_id">
  1117. <mandatory/>
  1118. </attribute>
  1119. <attribute id="team_id">
  1120. <mandatory/>
  1121. </attribute>
  1122. <attribute id="agent_id">
  1123. <mandatory/>
  1124. </attribute>
  1125. <attribute id="priority">
  1126. <read_only/>
  1127. </attribute>
  1128. <attribute id="start_date">
  1129. <read_only/>
  1130. </attribute>
  1131. <attribute id="last_update">
  1132. <read_only/>
  1133. </attribute>
  1134. <attribute id="close_date">
  1135. <hidden/>
  1136. </attribute>
  1137. <attribute id="request_type">
  1138. <read_only/>
  1139. </attribute>
  1140. <attribute id="approver_id">
  1141. <read_only/>
  1142. </attribute>
  1143. <attribute id="assignment_date">
  1144. <read_only/>
  1145. </attribute>
  1146. <attribute id="resolution_date">
  1147. <hidden/>
  1148. </attribute>
  1149. <attribute id="last_pending_date">
  1150. <read_only/>
  1151. </attribute>
  1152. <attribute id="time_spent">
  1153. <hidden/>
  1154. </attribute>
  1155. <attribute id="resolution_code">
  1156. <hidden/>
  1157. </attribute>
  1158. <attribute id="solution">
  1159. <hidden/>
  1160. </attribute>
  1161. <attribute id="pending_reason">
  1162. <mandatory/>
  1163. <must_prompt/>
  1164. </attribute>
  1165. <attribute id="user_satisfaction">
  1166. <hidden/>
  1167. </attribute>
  1168. <attribute id="user_comment">
  1169. <hidden/>
  1170. </attribute>
  1171. <attribute id="tto_escalation_deadline">
  1172. <hidden/>
  1173. </attribute>
  1174. <attribute id="sla_tto_passed">
  1175. <read_only/>
  1176. </attribute>
  1177. <attribute id="sla_tto_over">
  1178. <read_only/>
  1179. </attribute>
  1180. <attribute id="sla_ttr_passed">
  1181. <hidden/>
  1182. </attribute>
  1183. <attribute id="ttr_escalation_deadline">
  1184. <hidden/>
  1185. </attribute>
  1186. <attribute id="sla_ttr_over">
  1187. <hidden/>
  1188. </attribute>
  1189. </flags>
  1190. <transitions>
  1191. <transition>
  1192. <stimulus>ev_assign</stimulus>
  1193. <target>assigned</target>
  1194. <actions>
  1195. </actions>
  1196. </transition>
  1197. <transition>
  1198. <stimulus>ev_autoresolve</stimulus>
  1199. <target>resolved</target>
  1200. <actions>
  1201. <action>
  1202. <verb>SetResolveDate</verb>
  1203. </action>
  1204. <action>
  1205. <verb>resolveChilds</verb>
  1206. </action>
  1207. </actions>
  1208. </transition>
  1209. </transitions>
  1210. </state>
  1211. <state id="resolved">
  1212. <flags>
  1213. <attribute id="ref">
  1214. <read_only/>
  1215. </attribute>
  1216. <attribute id="org_id">
  1217. <read_only/>
  1218. </attribute>
  1219. <attribute id="caller_id">
  1220. <read_only/>
  1221. </attribute>
  1222. <attribute id="origin">
  1223. <read_only/>
  1224. </attribute>
  1225. <attribute id="team_id">
  1226. <read_only/>
  1227. </attribute>
  1228. <attribute id="agent_id">
  1229. <read_only/>
  1230. </attribute>
  1231. <attribute id="impact">
  1232. <read_only/>
  1233. </attribute>
  1234. <attribute id="urgency">
  1235. <read_only/>
  1236. </attribute>
  1237. <attribute id="priority">
  1238. <read_only/>
  1239. </attribute>
  1240. <attribute id="start_date">
  1241. <read_only/>
  1242. </attribute>
  1243. <attribute id="last_update">
  1244. <read_only/>
  1245. </attribute>
  1246. <attribute id="close_date">
  1247. <hidden/>
  1248. </attribute>
  1249. <attribute id="request_type">
  1250. <read_only/>
  1251. </attribute>
  1252. <attribute id="approver_id">
  1253. <read_only/>
  1254. </attribute>
  1255. <attribute id="service_id">
  1256. <mandatory/>
  1257. <must_prompt/>
  1258. </attribute>
  1259. <attribute id="servicesubcategory_id">
  1260. <must_prompt/>
  1261. </attribute>
  1262. <attribute id="escalation_flag">
  1263. <read_only/>
  1264. </attribute>
  1265. <attribute id="escalation_reason">
  1266. <read_only/>
  1267. </attribute>
  1268. <attribute id="assignment_date">
  1269. <read_only/>
  1270. </attribute>
  1271. <attribute id="resolution_date">
  1272. <read_only/>
  1273. </attribute>
  1274. <attribute id="last_pending_date">
  1275. <hidden/>
  1276. </attribute>
  1277. <attribute id="time_spent">
  1278. <read_only/>
  1279. </attribute>
  1280. <attribute id="resolution_code">
  1281. <mandatory/>
  1282. <must_prompt/>
  1283. </attribute>
  1284. <attribute id="solution">
  1285. <mandatory/>
  1286. <must_prompt/>
  1287. </attribute>
  1288. <attribute id="pending_reason">
  1289. <read_only/>
  1290. </attribute>
  1291. <attribute id="user_satisfaction">
  1292. <hidden/>
  1293. </attribute>
  1294. <attribute id="user_comment">
  1295. <hidden/>
  1296. </attribute>
  1297. <attribute id="parent_request_id">
  1298. <read_only/>
  1299. </attribute>
  1300. <attribute id="parent_change_id">
  1301. <read_only/>
  1302. </attribute>
  1303. <attribute id="parent_problem_id">
  1304. <read_only/>
  1305. </attribute>
  1306. <attribute id="title">
  1307. <read_only/>
  1308. </attribute>
  1309. <attribute id="description">
  1310. <read_only/>
  1311. </attribute>
  1312. <attribute id="tto_escalation_deadline">
  1313. <hidden/>
  1314. </attribute>
  1315. <attribute id="sla_tto_passed">
  1316. <read_only/>
  1317. </attribute>
  1318. <attribute id="sla_tto_over">
  1319. <read_only/>
  1320. </attribute>
  1321. <attribute id="sla_ttr_passed">
  1322. <read_only/>
  1323. </attribute>
  1324. <attribute id="ttr_escalation_deadline">
  1325. <hidden/>
  1326. </attribute>
  1327. <attribute id="sla_ttr_over">
  1328. <read_only/>
  1329. </attribute>
  1330. </flags>
  1331. <transitions>
  1332. <transition>
  1333. <stimulus>ev_close</stimulus>
  1334. <target>closed</target>
  1335. <actions>
  1336. <action>
  1337. <verb>SetClosureDate</verb>
  1338. </action>
  1339. </actions>
  1340. </transition>
  1341. <transition>
  1342. <stimulus>ev_reopen</stimulus>
  1343. <target>assigned</target>
  1344. <actions>
  1345. </actions>
  1346. </transition>
  1347. <transition>
  1348. <stimulus>ev_autoresolve</stimulus>
  1349. <target>resolved</target>
  1350. <actions>
  1351. <action>
  1352. <verb>SetResolveDate</verb>
  1353. </action>
  1354. <action>
  1355. <verb>resolveChilds</verb>
  1356. </action>
  1357. </actions>
  1358. </transition>
  1359. </transitions>
  1360. </state>
  1361. <state id="closed">
  1362. <flags>
  1363. <attribute id="ref">
  1364. <read_only/>
  1365. </attribute>
  1366. <attribute id="org_id">
  1367. <read_only/>
  1368. </attribute>
  1369. <attribute id="caller_id">
  1370. <read_only/>
  1371. </attribute>
  1372. <attribute id="origin">
  1373. <read_only/>
  1374. </attribute>
  1375. <attribute id="team_id">
  1376. <read_only/>
  1377. </attribute>
  1378. <attribute id="agent_id">
  1379. <read_only/>
  1380. </attribute>
  1381. <attribute id="start_date">
  1382. <read_only/>
  1383. </attribute>
  1384. <attribute id="last_update">
  1385. <read_only/>
  1386. </attribute>
  1387. <attribute id="private_log">
  1388. <read_only/>
  1389. </attribute>
  1390. <attribute id="request_type">
  1391. <read_only/>
  1392. </attribute>
  1393. <attribute id="impact">
  1394. <read_only/>
  1395. </attribute>
  1396. <attribute id="urgency">
  1397. <read_only/>
  1398. </attribute>
  1399. <attribute id="priority">
  1400. <read_only/>
  1401. </attribute>
  1402. <attribute id="approver_id">
  1403. <read_only/>
  1404. </attribute>
  1405. <attribute id="service_id">
  1406. <read_only/>
  1407. </attribute>
  1408. <attribute id="servicesubcategory_id">
  1409. <read_only/>
  1410. </attribute>
  1411. <attribute id="escalation_flag">
  1412. <read_only/>
  1413. </attribute>
  1414. <attribute id="escalation_reason">
  1415. <read_only/>
  1416. </attribute>
  1417. <attribute id="assignment_date">
  1418. <read_only/>
  1419. </attribute>
  1420. <attribute id="resolution_date">
  1421. <read_only/>
  1422. </attribute>
  1423. <attribute id="close_date">
  1424. <read_only/>
  1425. </attribute>
  1426. <attribute id="last_pending_date">
  1427. <hidden/>
  1428. </attribute>
  1429. <attribute id="time_spent">
  1430. <read_only/>
  1431. </attribute>
  1432. <attribute id="resolution_code">
  1433. <read_only/>
  1434. </attribute>
  1435. <attribute id="solution">
  1436. <read_only/>
  1437. </attribute>
  1438. <attribute id="pending_reason">
  1439. <read_only/>
  1440. </attribute>
  1441. <attribute id="public_log">
  1442. <read_only/>
  1443. </attribute>
  1444. <attribute id="user_satisfaction">
  1445. <must_prompt/>
  1446. </attribute>
  1447. <attribute id="user_comment">
  1448. <must_prompt/>
  1449. </attribute>
  1450. <attribute id="pending_reason">
  1451. <read_only/>
  1452. </attribute>
  1453. <attribute id="parent_request_id">
  1454. <read_only/>
  1455. </attribute>
  1456. <attribute id="parent_change_id">
  1457. <read_only/>
  1458. </attribute>
  1459. <attribute id="parent_problem_id">
  1460. <read_only/>
  1461. </attribute>
  1462. <attribute id="title">
  1463. <read_only/>
  1464. </attribute>
  1465. <attribute id="description">
  1466. <read_only/>
  1467. </attribute>
  1468. <attribute id="tto_escalation_deadline">
  1469. <hidden/>
  1470. </attribute>
  1471. <attribute id="sla_tto_passed">
  1472. <read_only/>
  1473. </attribute>
  1474. <attribute id="sla_tto_over">
  1475. <read_only/>
  1476. </attribute>
  1477. <attribute id="sla_ttr_passed">
  1478. <read_only/>
  1479. </attribute>
  1480. <attribute id="ttr_escalation_deadline">
  1481. <hidden/>
  1482. </attribute>
  1483. <attribute id="sla_ttr_over">
  1484. <read_only/>
  1485. </attribute>
  1486. </flags>
  1487. <transitions/>
  1488. </state>
  1489. </states>
  1490. </lifecycle>
  1491. <methods>
  1492. <method id="SetAssignedDate">
  1493. <static>false</static>
  1494. <access>public</access>
  1495. <type>LifecycleAction</type>
  1496. <code><![CDATA[ public function SetAssignedDate($sStimulusCode)
  1497. {
  1498. $this->Set('assignment_date', time());
  1499. return true;
  1500. }]]></code>
  1501. </method>
  1502. <method id="SetLastPendingDate">
  1503. <static>false</static>
  1504. <access>public</access>
  1505. <type>LifecycleAction</type>
  1506. <code><![CDATA[ public function SetLastPendingDate($sStimulusCode)
  1507. {
  1508. $this->Set('last_pending_date', time());
  1509. return true;
  1510. }]]></code>
  1511. </method>
  1512. <method id="SetResolveDate">
  1513. <static>false</static>
  1514. <access>public</access>
  1515. <type>LifecycleAction</type>
  1516. <code><![CDATA[ public function SetResolveDate($sStimulusCode)
  1517. {
  1518. $this->Set('resolution_date', time());
  1519. $iTimeSpent = time() - AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1520. $this->Set('time_spent', $iTimeSpent);
  1521. return true;
  1522. }]]></code>
  1523. </method>
  1524. <method id="SetClosureDate">
  1525. <static>false</static>
  1526. <access>public</access>
  1527. <type>LifecycleAction</type>
  1528. <code><![CDATA[ public function SetClosureDate($sStimulusCode)
  1529. {
  1530. $this->Set('close_date', time());
  1531. return true;
  1532. }]]></code>
  1533. </method>
  1534. <method id="SetApprover">
  1535. <static>false</static>
  1536. <access>public</access>
  1537. <type>LifecycleAction</type>
  1538. <code><![CDATA[ public function SetApprover($sStimulusCode)
  1539. {
  1540. $this->Set('approver_id', UserRights::GetUserId());
  1541. return true;
  1542. }]]></code>
  1543. </method>
  1544. <method id="ComputePriority">
  1545. <comment>/** Compute the priority of the ticket based on its impact and urgency&#13;
  1546. * @return integer The priority of the ticket 1(high) .. 3(low)&#13;
  1547. */</comment>
  1548. <static>false</static>
  1549. <access>public</access>
  1550. <type>LifecycleAction</type>
  1551. <code><![CDATA[ public function ComputePriority()
  1552. {
  1553. // priority[impact][urgency]
  1554. $aPriorities = array(
  1555. // single person
  1556. 1 => array(
  1557. 1 => 1,
  1558. 2 => 1,
  1559. 3 => 2,
  1560. 4 => 4,
  1561. ),
  1562. // a group
  1563. 2 => array(
  1564. 1 => 1,
  1565. 2 => 2,
  1566. 3 => 3,
  1567. 4 => 4,
  1568. ),
  1569. // a departement!
  1570. 3 => array(
  1571. 1 => 2,
  1572. 2 => 3,
  1573. 3 => 3,
  1574. 4 => 4,
  1575. ),
  1576. );
  1577. $iPriority = $aPriorities[(int)$this->Get('impact')][(int)$this->Get('urgency')];
  1578. return $iPriority;
  1579. }]]></code>
  1580. </method>
  1581. <method id="ComputeValues">
  1582. <static>false</static>
  1583. <access>public</access>
  1584. <type>Overload-DBObject</type>
  1585. <code><![CDATA[ public function ComputeValues()
  1586. {
  1587. // Compute the priority of the ticket
  1588. $this->Set('priority', $this->ComputePriority());
  1589. $sCurrRef = $this->Get('ref');
  1590. if (strlen($sCurrRef) == 0)
  1591. {
  1592. $iKey = $this->GetKey();
  1593. if ($iKey < 0)
  1594. {
  1595. // Object not yet in the Database
  1596. $iKey = MetaModel::GetNextKey(get_class($this));
  1597. }
  1598. $sName = sprintf('R-%06d', $iKey);
  1599. $this->Set('ref', $sName);
  1600. }
  1601. return parent::ComputeValues();
  1602. }]]></code>
  1603. </method>
  1604. <method id="DisplayBareRelations">
  1605. <static>false</static>
  1606. <access>public</access>
  1607. <type>Overload-cmdbAbstractObject</type>
  1608. <code><![CDATA[ function DisplayBareRelations(WebPage $oPage, $bEditMode = false)
  1609. {
  1610. parent::DisplayBareRelations($oPage, $bEditMode);
  1611. if (!$bEditMode)
  1612. {
  1613. if (MetaModel::IsValidClass('KnownError'))
  1614. {
  1615. //Search for known errors
  1616. $oPage->SetCurrentTab(Dict::S('Class:UserRequest:KnownErrorList'));
  1617. $iTicketID = $this->GetKey();;
  1618. $oKnownErrorSet = new CMDBObjectSet(DBObjectSearch::FromOQL("SELECT KnownError AS ke JOIN lnkErrorToFunctionalCI AS l1 ON l1.error_id=ke.id JOIN FunctionalCI AS ci ON l1.functionalci_id=ci.id JOIN lnkFunctionalCIToTicket AS l2 ON l2.functionalci_id=ci.id WHERE l2.ticket_id=$iTicketID"));
  1619. $iNumberKE=$oKnownErrorSet->count();
  1620. if ($iNumberKE > 0)
  1621. {
  1622. $oPage->SetCurrentTab(Dict::S('Class:UserRequest:KnownErrorList')." ($iNumberKE)");
  1623. }
  1624. else
  1625. {
  1626. $oPage->SetCurrentTab(Dict::S('Class:UserRequest:KnownErrorList'));
  1627. }
  1628. self::DisplaySet($oPage, $oKnownErrorSet, array ('menu' => false));
  1629. }
  1630. }
  1631. }]]></code>
  1632. </method>
  1633. <method id="GetIcon">
  1634. <comment>/**&#13;
  1635. * Get the icon representing this object&#13;
  1636. * @param boolean $bImgTag If true the result is a full IMG tag (or an emtpy string if no icon is defined)&#13;
  1637. * @return string Either the full IMG tag ($bImgTag == true) or just the path to the icon file&#13;
  1638. */</comment>
  1639. <static>false</static>
  1640. <access>public</access>
  1641. <type>Overload-DBObject</type>
  1642. <code><![CDATA[ public function GetIcon($bImgTag = true)
  1643. {
  1644. $sStatus = $this->Get('status');
  1645. switch($this->GetState())
  1646. {
  1647. case 'escalated_tto':
  1648. case 'escalated_ttr':
  1649. $sIcon = self::MakeIconFromName('user-request-escalated.png');
  1650. break;
  1651. case 'resolved':
  1652. case 'closed':
  1653. $sIcon = self::MakeIconFromName('user-request-closed.png');
  1654. break;
  1655. case 'new':
  1656. case 'approved':
  1657. $sIcon = self::MakeIconFromName('user-request.png');
  1658. $iEscalationDeadline = $this->Get('tto_escalation_deadline');
  1659. if ($iEscalationDeadline != null)
  1660. {
  1661. // A SLA is running
  1662. $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1663. $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
  1664. if ($ratio <= 0)
  1665. {
  1666. $sIcon = self::MakeIconFromName('user-request-escalated.png');
  1667. }
  1668. else if ($ratio <= 0.25)
  1669. {
  1670. $sIcon = self::MakeIconFromName('user-request-deadline.png');
  1671. }
  1672. }
  1673. break;
  1674. case 'assigned':
  1675. $sIcon = self::MakeIconFromName('user-request.png');
  1676. $iEscalationDeadline = $this->Get('ttr_escalation_deadline');
  1677. if ($iEscalationDeadline != null)
  1678. {
  1679. // A SLA is running
  1680. $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1681. $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
  1682. if ($ratio <= 0)
  1683. {
  1684. $sIcon = self::MakeIconFromName('user-request-escalated.png');
  1685. }
  1686. else if ($ratio <= 0.25)
  1687. {
  1688. $sIcon = self::MakeIconFromName('user-request-deadline.png');
  1689. }
  1690. }
  1691. break;
  1692. default:
  1693. $sIcon = MetaModel::GetClassIcon(get_class($this), $bImgTag);
  1694. }
  1695. return $sIcon;
  1696. }]]></code>
  1697. </method>
  1698. <method id="MakeIconFromName">
  1699. <static>true</static>
  1700. <access>protected</access>
  1701. <type>Overload-DBObject</type>
  1702. <code><![CDATA[ protected static function MakeIconFromName($sIconName, $bImgTag = true)
  1703. {
  1704. $sIcon = '';
  1705. if ($sIconName != '')
  1706. {
  1707. $sPath = '../env-'.utils::GetCurrentEnvironment().'/itop-request-mgmt-itil/images/'.$sIconName;
  1708. if ($bImgTag)
  1709. {
  1710. $sIcon = "<img src=\"$sPath\" style=\"vertical-align:middle;\"/>";
  1711. }
  1712. else
  1713. {
  1714. $sIcon = $sPath;
  1715. }
  1716. }
  1717. return $sIcon;
  1718. }]]></code>
  1719. </method>
  1720. <method id="GetHilightClass">
  1721. <static>false</static>
  1722. <access>public</access>
  1723. <type>Overload-iDisplay</type>
  1724. <code><![CDATA[ public function GetHilightClass()
  1725. {
  1726. $sHilightClass = '';
  1727. switch($this->GetState())
  1728. {
  1729. case 'new':
  1730. case 'approved':
  1731. $iEscalationDeadline = $this->Get('tto_escalation_deadline');
  1732. if ($iEscalationDeadline != null)
  1733. {
  1734. // A SLA is running
  1735. $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1736. $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
  1737. if ($ratio <= 0)
  1738. {
  1739. $sHilightClass = HILIGHT_CLASS_CRITICAL;
  1740. }
  1741. else if ($ratio <= 0.25)
  1742. {
  1743. $sHilightClass = HILIGHT_CLASS_WARNING;
  1744. }
  1745. }
  1746. break;
  1747. case 'assigned':
  1748. $iEscalationDeadline = $this->Get('ttr_escalation_deadline');
  1749. if ($iEscalationDeadline != null)
  1750. {
  1751. // A SLA is running
  1752. $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1753. $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
  1754. if ($ratio <= 0)
  1755. {
  1756. $sHilightClass = HILIGHT_CLASS_CRITICAL;
  1757. }
  1758. else if ($ratio <= 0.25)
  1759. {
  1760. $sHilightClass = HILIGHT_CLASS_WARNING;
  1761. }
  1762. }
  1763. break;
  1764. case 'escalated_tto':
  1765. case 'escalated_ttr':
  1766. $sHilightClass = HILIGHT_CLASS_CRITICAL;
  1767. break;
  1768. }
  1769. return $sHilightClass;
  1770. }]]></code>
  1771. </method>
  1772. <method id="resolveChilds">
  1773. <static>false</static>
  1774. <access>public</access>
  1775. <type>LifecycleAction</type>
  1776. <code><![CDATA[ public function resolveChilds($sStimulusCode)
  1777. {
  1778. $oMyChange = MetaModel::NewObject("CMDBChange");
  1779. $oMyChange->Set("date", time());
  1780. $sUserString = CMDBChange::GetCurrentUserName();
  1781. $oMyChange->Set("userinfo", $sUserString."(automatic resolution)");
  1782. $iChangeId = $oMyChange->DBInsert();
  1783. $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket";
  1784. $oChildRequestSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL),
  1785. array(),
  1786. array(
  1787. 'ticket' => $this->GetKey(),
  1788. )
  1789. );
  1790. while($oRequest = $oChildRequestSet->Fetch())
  1791. {
  1792. if ( $oRequest->Get('status') != 'resolved')
  1793. {
  1794. $oRequest->set('servicesubcategory_id',$this->Get('servicesubcategory_id'));
  1795. $oRequest->set('service_id',$this->Get('service_id'));
  1796. $oRequest->set('team_id',$this->Get('team_id'));
  1797. $oRequest->set('agent_id',$this->Get('agent_id'));
  1798. $oRequest->set('resolution_code',$this->Get('resolution_code'));
  1799. $oRequest->set('solution','Automatically resolved by request:[[UserRequest:'.$this->Get('ref').']]');
  1800. $oRequest->ApplyStimulus('ev_autoresolve');
  1801. $oRequest->DBUpdateTracked($oMyChange);
  1802. }
  1803. }
  1804. return true;
  1805. }]]></code>
  1806. </method>
  1807. <method id="UpdateChildRequestLog">
  1808. <static>false</static>
  1809. <access>public</access>
  1810. <type>LifecycleAction</type>
  1811. <code><![CDATA[ public function UpdateChildRequestLog()
  1812. {
  1813. $sLogPublic = utils::ReadPostedParam('attr_public_log', null,false,'raw_data');
  1814. if ( $sLogPublic != null)
  1815. {
  1816. $oMyChange = MetaModel::NewObject("CMDBChange");
  1817. $oMyChange->Set("date", time());
  1818. $sUserString = CMDBChange::GetCurrentUserName();
  1819. $oMyChange->Set("userinfo", $sUserString."(automatic update)");
  1820. $iChangeId = $oMyChange->DBInsert();
  1821. $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket";
  1822. $oChildRequestSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL),
  1823. array(),
  1824. array(
  1825. 'ticket' => $this->GetKey(),
  1826. )
  1827. );
  1828. while($oRequest = $oChildRequestSet->Fetch())
  1829. {
  1830. $oRequest->set('public_log',$sLogPublic);
  1831. $oRequest->DBUpdateTracked($oMyChange);
  1832. }
  1833. }
  1834. $sLogPrivate = utils::ReadPostedParam('attr_private_log', null,false,'raw_data');
  1835. if ( $sLogPrivate != null)
  1836. {
  1837. $oMyChange = MetaModel::NewObject("CMDBChange");
  1838. $oMyChange->Set("date", time());
  1839. $sUserString = CMDBChange::GetCurrentUserName();
  1840. $oMyChange->Set("userinfo", $sUserString."(automatic update)");
  1841. $iChangeId = $oMyChange->DBInsert();
  1842. $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket";
  1843. $oChildRequestSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL),
  1844. array(),
  1845. array(
  1846. 'ticket' => $this->GetKey(),
  1847. )
  1848. );
  1849. while($oRequest = $oChildRequestSet->Fetch())
  1850. {
  1851. $oRequest->set('private_log',$sLogPrivate);
  1852. $oRequest->DBUpdateTracked($oMyChange);
  1853. }
  1854. }
  1855. return true;
  1856. }]]></code>
  1857. </method>
  1858. <method id="ComputeImpactedItems">
  1859. <static>false</static>
  1860. <access>public</access>
  1861. <type>LifecycleAction</type>
  1862. <code><![CDATA[ public function ComputeImpactedItems()
  1863. {
  1864. $oToNotify = $this->Get('contacts_list');
  1865. $oToImpact = $this->Get('functionalcis_list');
  1866. $oImpactedInfras = DBObjectSet::FromLinkSet($this, 'functionalcis_list', 'functionalci_id');
  1867. $aComputed = $oImpactedInfras->GetRelatedObjects('impacts', 10);
  1868. if (isset($aComputed['FunctionalCI']) && is_array($aComputed['FunctionalCI']))
  1869. {
  1870. foreach($aComputed['FunctionalCI'] as $iKey => $oObject)
  1871. {
  1872. $oNewLink = new lnkFunctionalCIToTicket();
  1873. $oNewLink->Set('functionalci_id', $iKey);
  1874. $oNewLink->Set('impact', 'potentially impacted (automatically computed)');
  1875. $oToImpact->AddObject($oNewLink);
  1876. }
  1877. }
  1878. if (isset($aComputed['Contact']) && is_array($aComputed['Contact']))
  1879. {
  1880. foreach($aComputed['Contact'] as $iKey => $oObject)
  1881. {
  1882. $oNewLink = new lnkContactToTicket();
  1883. $oNewLink->Set('contact_id', $iKey);
  1884. $oNewLink->Set('role', 'contact automatically computed');
  1885. $oToNotify->AddObject($oNewLink);
  1886. }
  1887. }
  1888. parent::OnInsert();
  1889. }]]></code>
  1890. </method>
  1891. <method id="OnInsert">
  1892. <static>false</static>
  1893. <access>protected</access>
  1894. <type>Overload-DBObject</type>
  1895. <code><![CDATA[ protected function OnInsert()
  1896. {
  1897. $this->ComputeImpactedItems();
  1898. $this->Set('last_update', time());
  1899. $this->Set('start_date', time());
  1900. }]]></code>
  1901. </method>
  1902. <method id="OnUpdate">
  1903. <static>false</static>
  1904. <access>protected</access>
  1905. <type>Overload-DBObject</type>
  1906. <code><![CDATA[ protected function OnUpdate()
  1907. {
  1908. $this->Set('last_update', time());
  1909. $this->UpdateChildRequestLog();
  1910. }]]></code>
  1911. </method>
  1912. </methods>
  1913. <presentation>
  1914. <details>
  1915. <items>
  1916. <item id="functionalcis_list">
  1917. <rank>10</rank>
  1918. </item>
  1919. <item id="contacts_list">
  1920. <rank>20</rank>
  1921. </item>
  1922. <item id="related_request_list">
  1923. <rank>30</rank>
  1924. </item>
  1925. <item id="workorders_list">
  1926. <rank>40</rank>
  1927. </item>
  1928. <item id="col:col1">
  1929. <rank>50</rank>
  1930. <items>
  1931. <item id="fieldset:Ticket:baseinfo">
  1932. <rank>10</rank>
  1933. <items>
  1934. <item id="org_id">
  1935. <rank>10</rank>
  1936. </item>
  1937. <item id="caller_id">
  1938. <rank>20</rank>
  1939. </item>
  1940. <item id="status">
  1941. <rank>30</rank>
  1942. </item>
  1943. <item id="origin">
  1944. <rank>40</rank>
  1945. </item>
  1946. <item id="title">
  1947. <rank>50</rank>
  1948. </item>
  1949. <item id="description">
  1950. <rank>60</rank>
  1951. </item>
  1952. </items>
  1953. </item>
  1954. <item id="fieldset:Ticket:moreinfo">
  1955. <rank>20</rank>
  1956. <items>
  1957. <item id="service_id">
  1958. <rank>10</rank>
  1959. </item>
  1960. <item id="servicesubcategory_id">
  1961. <rank>20</rank>
  1962. </item>
  1963. <item id="escalation_flag">
  1964. <rank>30</rank>
  1965. </item>
  1966. <item id="escalation_reason">
  1967. <rank>40</rank>
  1968. </item>
  1969. <item id="pending_reason">
  1970. <rank>50</rank>
  1971. </item>
  1972. </items>
  1973. </item>
  1974. </items>
  1975. </item>
  1976. <item id="col:col2">
  1977. <rank>60</rank>
  1978. <items>
  1979. <item id="fieldset:Ticket:Type">
  1980. <rank>10</rank>
  1981. <items>
  1982. <item id="request_type">
  1983. <rank>10</rank>
  1984. </item>
  1985. <item id="impact">
  1986. <rank>20</rank>
  1987. </item>
  1988. <item id="urgency">
  1989. <rank>30</rank>
  1990. </item>
  1991. <item id="priority">
  1992. <rank>40</rank>
  1993. </item>
  1994. </items>
  1995. </item>
  1996. <item id="fieldset:Ticket:contact">
  1997. <rank>20</rank>
  1998. <items>
  1999. <item id="team_id">
  2000. <rank>10</rank>
  2001. </item>
  2002. <item id="agent_id">
  2003. <rank>20</rank>
  2004. </item>
  2005. <item id="approver_id">
  2006. <rank>30</rank>
  2007. </item>
  2008. </items>
  2009. </item>
  2010. <item id="fieldset:Ticket:date">
  2011. <rank>30</rank>
  2012. <items>
  2013. <item id="start_date">
  2014. <rank>10</rank>
  2015. </item>
  2016. <item id="last_update">
  2017. <rank>20</rank>
  2018. </item>
  2019. <item id="assignment_date">
  2020. <rank>30</rank>
  2021. </item>
  2022. <item id="tto_escalation_deadline">
  2023. <rank>40</rank>
  2024. </item>
  2025. <item id="ttr_escalation_deadline">
  2026. <rank>50</rank>
  2027. </item>
  2028. <item id="last_pending_date">
  2029. <rank>60</rank>
  2030. </item>
  2031. <item id="resolution_date">
  2032. <rank>70</rank>
  2033. </item>
  2034. <item id="close_date">
  2035. <rank>80</rank>
  2036. </item>
  2037. </items>
  2038. </item>
  2039. </items>
  2040. </item>
  2041. <item id="col:col3">
  2042. <rank>70</rank>
  2043. <items>
  2044. <item id="fieldset:Relations">
  2045. <rank>10</rank>
  2046. <items>
  2047. <item id="parent_request_id">
  2048. <rank>10</rank>
  2049. </item>
  2050. <item id="parent_incident_id">
  2051. <rank>20</rank>
  2052. </item>
  2053. <item id="parent_problem_id">
  2054. <rank>30</rank>
  2055. </item>
  2056. <item id="parent_change_id">
  2057. <rank>40</rank>
  2058. </item>
  2059. </items>
  2060. </item>
  2061. <item id="fieldset:Ticket:resolution">
  2062. <rank>20</rank>
  2063. <items>
  2064. <item id="resolution_code">
  2065. <rank>10</rank>
  2066. </item>
  2067. <item id="solution">
  2068. <rank>20</rank>
  2069. </item>
  2070. <item id="time_spent">
  2071. <rank>30</rank>
  2072. </item>
  2073. <item id="user_satisfaction">
  2074. <rank>40</rank>
  2075. </item>
  2076. <item id="user_comment">
  2077. <rank>50</rank>
  2078. </item>
  2079. </items>
  2080. </item>
  2081. <item id="fieldset:Ticket:SLA">
  2082. <rank>30</rank>
  2083. <items>
  2084. <item id="sla_tto_passed">
  2085. <rank>10</rank>
  2086. </item>
  2087. <item id="sla_tto_over">
  2088. <rank>20</rank>
  2089. </item>
  2090. <item id="sla_ttr_passed">
  2091. <rank>30</rank>
  2092. </item>
  2093. <item id="sla_ttr_over">
  2094. <rank>40</rank>
  2095. </item>
  2096. </items>
  2097. </item>
  2098. </items>
  2099. </item>
  2100. </items>
  2101. </details>
  2102. <search>
  2103. <items>
  2104. <item id="ref">
  2105. <rank>10</rank>
  2106. </item>
  2107. <item id="org_id">
  2108. <rank>20</rank>
  2109. </item>
  2110. <item id="title">
  2111. <rank>30</rank>
  2112. </item>
  2113. <item id="description">
  2114. <rank>40</rank>
  2115. </item>
  2116. <item id="start_date">
  2117. <rank>50</rank>
  2118. </item>
  2119. <item id="end_date">
  2120. <rank>60</rank>
  2121. </item>
  2122. <item id="resolution_date">
  2123. <rank>70</rank>
  2124. </item>
  2125. <item id="close_date">
  2126. <rank>80</rank>
  2127. </item>
  2128. <item id="status">
  2129. <rank>90</rank>
  2130. </item>
  2131. <item id="caller_id">
  2132. <rank>100</rank>
  2133. </item>
  2134. <item id="origin">
  2135. <rank>110</rank>
  2136. </item>
  2137. <item id="request_type">
  2138. <rank>120</rank>
  2139. </item>
  2140. <item id="impact">
  2141. <rank>130</rank>
  2142. </item>
  2143. <item id="urgency">
  2144. <rank>140</rank>
  2145. </item>
  2146. <item id="priority">
  2147. <rank>150</rank>
  2148. </item>
  2149. <item id="service_id">
  2150. <rank>160</rank>
  2151. </item>
  2152. <item id="servicesubcategory_id">
  2153. <rank>170</rank>
  2154. </item>
  2155. <item id="team_id">
  2156. <rank>180</rank>
  2157. </item>
  2158. <item id="agent_id">
  2159. <rank>190</rank>
  2160. </item>
  2161. <item id="escalation_flag">
  2162. <rank>200</rank>
  2163. </item>
  2164. <item id="resolution_code">
  2165. <rank>210</rank>
  2166. </item>
  2167. <item id="user_satisfaction">
  2168. <rank>220</rank>
  2169. </item>
  2170. <item id="sla_tto_passed">
  2171. <rank>230</rank>
  2172. </item>
  2173. <item id="sla_ttr_passed">
  2174. <rank>240</rank>
  2175. </item>
  2176. </items>
  2177. </search>
  2178. <list>
  2179. <items>
  2180. <item id="title">
  2181. <rank>10</rank>
  2182. </item>
  2183. <item id="org_id">
  2184. <rank>20</rank>
  2185. </item>
  2186. <item id="caller_id">
  2187. <rank>30</rank>
  2188. </item>
  2189. <item id="start_date">
  2190. <rank>40</rank>
  2191. </item>
  2192. <item id="status">
  2193. <rank>50</rank>
  2194. </item>
  2195. <item id="agent_id">
  2196. <rank>60</rank>
  2197. </item>
  2198. </items>
  2199. </list>
  2200. </presentation>
  2201. </class>
  2202. </classes>
  2203. <menus>
  2204. <menu id="WelcomeMenuPage" xsi:type="DashboardMenuNode" _delta="must_exist">
  2205. <definition>
  2206. <cells>
  2207. <cell id="1" _delta="define">
  2208. <rank>1</rank>
  2209. <dashlets>
  2210. <dashlet id="8" xsi:type="DashletHeaderDynamic">
  2211. <rank>0</rank>
  2212. <title>Menu:RequestManagement</title>
  2213. <icon>itop-welcome-itil/images/user-request-deadline.png</icon>
  2214. <subtitle>Open Requests</subtitle>
  2215. <query>SELECT UserRequest WHERE status != "closed"</query>
  2216. <group_by>status</group_by>
  2217. <values>new,assigned,escalated_tto,escalated_ttr,resolved</values>
  2218. </dashlet>
  2219. <dashlet id="9" xsi:type="DashletObjectList">
  2220. <rank>1</rank>
  2221. <title>UI:WelcomeMenu:MyCalls</title>
  2222. <query>SELECT UserRequest AS i WHERE i.agent_id = :current_contact_id AND status NOT IN ("closed", "resolved")</query>
  2223. <menu>true</menu>
  2224. </dashlet>
  2225. </dashlets>
  2226. </cell>
  2227. </cells>
  2228. </definition>
  2229. </menu>
  2230. <menu id="RequestManagement" xsi:type="MenuGroup" _delta="define">
  2231. <rank>30</rank>
  2232. <enable_class>Contact</enable_class>
  2233. <enable_action>UR_ACTION_MODIFY</enable_action>
  2234. <enable_permission>UR_ALLOWED_YES</enable_permission>
  2235. <enable_stimulus/>
  2236. </menu>
  2237. <menu id="UserRequest:Overview" xsi:type="DashboardMenuNode" _delta="define">
  2238. <rank>0</rank>
  2239. <parent>RequestManagement</parent>
  2240. <definition_file>overview.xml</definition_file>
  2241. </menu>
  2242. <menu id="NewUserRequest" xsi:type="NewObjectMenuNode" _delta="define">
  2243. <rank>1</rank>
  2244. <parent>RequestManagement</parent>
  2245. <class>UserRequest</class>
  2246. </menu>
  2247. <menu id="SearchUserRequests" xsi:type="SearchMenuNode" _delta="define">
  2248. <rank>2</rank>
  2249. <parent>RequestManagement</parent>
  2250. <class>UserRequest</class>
  2251. </menu>
  2252. <menu id="UserRequest:Shortcuts" xsi:type="TemplateMenuNode" _delta="define">
  2253. <rank>3</rank>
  2254. <parent>RequestManagement</parent>
  2255. <template_file/>
  2256. </menu>
  2257. <menu id="UserRequest:MyRequests" xsi:type="OQLMenuNode" _delta="define">
  2258. <rank>0</rank>
  2259. <parent>UserRequest:Shortcuts</parent>
  2260. <oql><![CDATA[SELECT UserRequest WHERE agent_id = :current_contact_id AND status NOT IN ("closed","resolved")]]></oql>
  2261. <do_search/>
  2262. <auto_reload>fast</auto_reload>
  2263. </menu>
  2264. <menu id="UserRequest:EscalatedRequests" xsi:type="OQLMenuNode" _delta="define">
  2265. <rank>1</rank>
  2266. <parent>UserRequest:Shortcuts</parent>
  2267. <oql><![CDATA[SELECT UserRequest WHERE status IN ("escalated_tto", "escalated_ttr") OR escalation_flag="yes"]]></oql>
  2268. <do_search/>
  2269. <auto_reload>fast</auto_reload>
  2270. </menu>
  2271. <menu id="UserRequest:OpenRequests" xsi:type="OQLMenuNode" _delta="define">
  2272. <rank>2</rank>
  2273. <parent>UserRequest:Shortcuts</parent>
  2274. <oql><![CDATA[SELECT UserRequest WHERE status NOT IN ("closed")]]></oql>
  2275. <do_search>1</do_search>
  2276. <auto_reload>fast</auto_reload>
  2277. </menu>
  2278. <menu id="UserRequest:MySupportRequests" xsi:type="OQLMenuNode" _delta="define">
  2279. <rank>3</rank>
  2280. <parent>UserRequest:Shortcuts</parent>
  2281. <oql><![CDATA[SELECT UserRequest WHERE caller_id = :current_contact_id AND status NOT IN ("closed")]]></oql>
  2282. <do_search/>
  2283. <auto_reload>fast</auto_reload>
  2284. </menu>
  2285. </menus>
  2286. </itop_design>