datamodel.itop-request-mgmt.xml 77 KB

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