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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353
  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_timeout</stimulus>
  717. <target>escalated_ttr</target>
  718. <actions/>
  719. </transition>
  720. <transition>
  721. <stimulus>ev_autoresolve</stimulus>
  722. <target>resolved</target>
  723. <actions>
  724. <action>
  725. <verb>SetResolveDate</verb>
  726. </action>
  727. <action>
  728. <verb>resolveChilds</verb>
  729. </action>
  730. </actions>
  731. </transition>
  732. </transitions>
  733. </state>
  734. <state id="escalated_ttr">
  735. <flags>
  736. <attribute id="ref">
  737. <read_only/>
  738. </attribute>
  739. <attribute id="org_id">
  740. <mandatory/>
  741. </attribute>
  742. <attribute id="team_id">
  743. <mandatory/>
  744. </attribute>
  745. <attribute id="agent_id">
  746. <mandatory/>
  747. </attribute>
  748. <attribute id="priority">
  749. <read_only/>
  750. </attribute>
  751. <attribute id="start_date">
  752. <read_only/>
  753. </attribute>
  754. <attribute id="last_update">
  755. <read_only/>
  756. </attribute>
  757. <attribute id="close_date">
  758. <hidden/>
  759. </attribute>
  760. <attribute id="request_type">
  761. <read_only/>
  762. </attribute>
  763. <attribute id="approver_id">
  764. <read_only/>
  765. </attribute>
  766. <attribute id="assignment_date">
  767. <read_only/>
  768. </attribute>
  769. <attribute id="resolution_date">
  770. <hidden/>
  771. </attribute>
  772. <attribute id="last_pending_date">
  773. <hidden/>
  774. </attribute>
  775. <attribute id="time_spent">
  776. <hidden/>
  777. </attribute>
  778. <attribute id="resolution_code">
  779. <hidden/>
  780. </attribute>
  781. <attribute id="solution">
  782. <hidden/>
  783. </attribute>
  784. <attribute id="pending_reason">
  785. <hidden/>
  786. </attribute>
  787. <attribute id="user_satisfaction">
  788. <hidden/>
  789. </attribute>
  790. <attribute id="user_comment">
  791. <hidden/>
  792. </attribute>
  793. <attribute id="tto_escalation_deadline">
  794. <hidden/>
  795. </attribute>
  796. <attribute id="sla_tto_passed">
  797. <read_only/>
  798. </attribute>
  799. <attribute id="sla_tto_over">
  800. <read_only/>
  801. </attribute>
  802. <attribute id="sla_ttr_passed">
  803. <hidden/>
  804. </attribute>
  805. <attribute id="ttr_escalation_deadline">
  806. <read_only/>
  807. </attribute>
  808. <attribute id="sla_ttr_over">
  809. <hidden/>
  810. </attribute>
  811. </flags>
  812. <transitions>
  813. <transition>
  814. <stimulus>ev_pending</stimulus>
  815. <target>pending</target>
  816. <actions>
  817. <action>
  818. <verb>SetLastPendingDate</verb>
  819. </action>
  820. </actions>
  821. </transition>
  822. <transition>
  823. <stimulus>ev_resolve</stimulus>
  824. <target>resolved</target>
  825. <actions>
  826. <action>
  827. <verb>SetResolveDate</verb>
  828. </action>
  829. <action>
  830. <verb>resolveChilds</verb>
  831. </action>
  832. </actions>
  833. </transition>
  834. <transition>
  835. <stimulus>ev_reassign</stimulus>
  836. <target>assigned</target>
  837. <actions/>
  838. </transition>
  839. <transition>
  840. <stimulus>ev_autoresolve</stimulus>
  841. <target>resolved</target>
  842. <actions>
  843. <action>
  844. <verb>SetResolveDate</verb>
  845. </action>
  846. <action>
  847. <verb>resolveChilds</verb>
  848. </action>
  849. </actions>
  850. </transition>
  851. </transitions>
  852. </state>
  853. <state id="waiting_for_approval">
  854. <flags>
  855. <attribute id="ref">
  856. <read_only/>
  857. </attribute>
  858. <attribute id="org_id">
  859. <mandatory/>
  860. </attribute>
  861. <attribute id="caller_id">
  862. <mandatory/>
  863. </attribute>
  864. <attribute id="agent_id">
  865. <hidden/>
  866. </attribute>
  867. <attribute id="priority">
  868. <read_only/>
  869. </attribute>
  870. <attribute id="start_date">
  871. <read_only/>
  872. </attribute>
  873. <attribute id="last_update">
  874. <read_only/>
  875. </attribute>
  876. <attribute id="close_date">
  877. <hidden/>
  878. </attribute>
  879. <attribute id="approver_id">
  880. <must_prompt/>
  881. </attribute>
  882. <attribute id="request_type">
  883. <read_only/>
  884. </attribute>
  885. <attribute id="escalation_flag">
  886. <hidden/>
  887. </attribute>
  888. <attribute id="escalation_reason">
  889. <hidden/>
  890. </attribute>
  891. <attribute id="assignment_date">
  892. <hidden/>
  893. </attribute>
  894. <attribute id="resolution_date">
  895. <hidden/>
  896. </attribute>
  897. <attribute id="last_pending_date">
  898. <hidden/>
  899. </attribute>
  900. <attribute id="time_spent">
  901. <hidden/>
  902. </attribute>
  903. <attribute id="resolution_code">
  904. <hidden/>
  905. </attribute>
  906. <attribute id="solution">
  907. <hidden/>
  908. </attribute>
  909. <attribute id="pending_reason">
  910. <hidden/>
  911. </attribute>
  912. <attribute id="user_satisfaction">
  913. <hidden/>
  914. </attribute>
  915. <attribute id="user_comment">
  916. <hidden/>
  917. </attribute>
  918. <attribute id="tto_escalation_deadline">
  919. <read_only/>
  920. </attribute>
  921. <attribute id="sla_tto_passed">
  922. <hidden/>
  923. </attribute>
  924. <attribute id="sla_tto_over">
  925. <hidden/>
  926. </attribute>
  927. <attribute id="sla_ttr_passed">
  928. <hidden/>
  929. </attribute>
  930. <attribute id="ttr_escalation_deadline">
  931. <hidden/>
  932. </attribute>
  933. <attribute id="sla_ttr_over">
  934. <hidden/>
  935. </attribute>
  936. </flags>
  937. <transitions>
  938. <transition>
  939. <stimulus>ev_approve</stimulus>
  940. <target>approved</target>
  941. <actions/>
  942. </transition>
  943. <transition>
  944. <stimulus>ev_reject</stimulus>
  945. <target>rejected</target>
  946. <actions/>
  947. </transition>
  948. </transitions>
  949. </state>
  950. <state id="approved">
  951. <flags>
  952. <attribute id="ref">
  953. <read_only/>
  954. </attribute>
  955. <attribute id="org_id">
  956. <mandatory/>
  957. </attribute>
  958. <attribute id="caller_id">
  959. <mandatory/>
  960. </attribute>
  961. <attribute id="agent_id">
  962. <hidden/>
  963. </attribute>
  964. <attribute id="priority">
  965. <read_only/>
  966. </attribute>
  967. <attribute id="start_date">
  968. <read_only/>
  969. </attribute>
  970. <attribute id="last_update">
  971. <read_only/>
  972. </attribute>
  973. <attribute id="close_date">
  974. <hidden/>
  975. </attribute>
  976. <attribute id="approver_id">
  977. <read_only/>
  978. </attribute>
  979. <attribute id="request_type">
  980. <read_only/>
  981. </attribute>
  982. <attribute id="escalation_flag">
  983. <hidden/>
  984. </attribute>
  985. <attribute id="escalation_reason">
  986. <hidden/>
  987. </attribute>
  988. <attribute id="assignment_date">
  989. <hidden/>
  990. </attribute>
  991. <attribute id="resolution_date">
  992. <hidden/>
  993. </attribute>
  994. <attribute id="last_pending_date">
  995. <hidden/>
  996. </attribute>
  997. <attribute id="time_spent">
  998. <hidden/>
  999. </attribute>
  1000. <attribute id="resolution_code">
  1001. <hidden/>
  1002. </attribute>
  1003. <attribute id="solution">
  1004. <hidden/>
  1005. </attribute>
  1006. <attribute id="pending_reason">
  1007. <hidden/>
  1008. </attribute>
  1009. <attribute id="user_satisfaction">
  1010. <hidden/>
  1011. </attribute>
  1012. <attribute id="user_comment">
  1013. <hidden/>
  1014. </attribute>
  1015. <attribute id="tto_escalation_deadline">
  1016. <read_only/>
  1017. </attribute>
  1018. <attribute id="sla_tto_passed">
  1019. <hidden/>
  1020. </attribute>
  1021. <attribute id="sla_tto_over">
  1022. <hidden/>
  1023. </attribute>
  1024. <attribute id="sla_ttr_passed">
  1025. <hidden/>
  1026. </attribute>
  1027. <attribute id="ttr_escalation_deadline">
  1028. <hidden/>
  1029. </attribute>
  1030. <attribute id="sla_ttr_over">
  1031. <hidden/>
  1032. </attribute>
  1033. </flags>
  1034. <transitions>
  1035. <transition>
  1036. <stimulus>ev_timeout</stimulus>
  1037. <target>escalated_tto</target>
  1038. <actions/>
  1039. </transition>
  1040. <transition>
  1041. <stimulus>ev_assign</stimulus>
  1042. <target>assigned</target>
  1043. <actions>
  1044. <action>
  1045. <verb>SetAssignedDate</verb>
  1046. </action>
  1047. </actions>
  1048. </transition>
  1049. <transition>
  1050. <stimulus>ev_autoresolve</stimulus>
  1051. <target>resolved</target>
  1052. <actions>
  1053. <action>
  1054. <verb>SetResolveDate</verb>
  1055. </action>
  1056. <action>
  1057. <verb>resolveChilds</verb>
  1058. </action>
  1059. </actions>
  1060. </transition>
  1061. </transitions>
  1062. </state>
  1063. <state id="rejected">
  1064. <flags>
  1065. <attribute id="ref">
  1066. <read_only/>
  1067. </attribute>
  1068. <attribute id="org_id">
  1069. <mandatory/>
  1070. </attribute>
  1071. <attribute id="caller_id">
  1072. <mandatory/>
  1073. </attribute>
  1074. <attribute id="agent_id">
  1075. <hidden/>
  1076. </attribute>
  1077. <attribute id="priority">
  1078. <read_only/>
  1079. </attribute>
  1080. <attribute id="start_date">
  1081. <read_only/>
  1082. </attribute>
  1083. <attribute id="last_update">
  1084. <read_only/>
  1085. </attribute>
  1086. <attribute id="close_date">
  1087. <hidden/>
  1088. </attribute>
  1089. <attribute id="approver_id">
  1090. <hidden/>
  1091. </attribute>
  1092. <attribute id="request_type">
  1093. <read_only/>
  1094. </attribute>
  1095. <attribute id="escalation_flag">
  1096. <hidden/>
  1097. </attribute>
  1098. <attribute id="escalation_reason">
  1099. <hidden/>
  1100. </attribute>
  1101. <attribute id="assignment_date">
  1102. <hidden/>
  1103. </attribute>
  1104. <attribute id="resolution_date">
  1105. <hidden/>
  1106. </attribute>
  1107. <attribute id="last_pending_date">
  1108. <hidden/>
  1109. </attribute>
  1110. <attribute id="time_spent">
  1111. <hidden/>
  1112. </attribute>
  1113. <attribute id="resolution_code">
  1114. <hidden/>
  1115. </attribute>
  1116. <attribute id="solution">
  1117. <hidden/>
  1118. </attribute>
  1119. <attribute id="pending_reason">
  1120. <hidden/>
  1121. </attribute>
  1122. <attribute id="user_satisfaction">
  1123. <hidden/>
  1124. </attribute>
  1125. <attribute id="user_comment">
  1126. <hidden/>
  1127. </attribute>
  1128. <attribute id="tto_escalation_deadline">
  1129. <hidden/>
  1130. </attribute>
  1131. <attribute id="sla_tto_passed">
  1132. <hidden/>
  1133. </attribute>
  1134. <attribute id="sla_tto_over">
  1135. <hidden/>
  1136. </attribute>
  1137. <attribute id="sla_ttr_passed">
  1138. <hidden/>
  1139. </attribute>
  1140. <attribute id="ttr_escalation_deadline">
  1141. <hidden/>
  1142. </attribute>
  1143. <attribute id="sla_ttr_over">
  1144. <hidden/>
  1145. </attribute>
  1146. </flags>
  1147. <transitions>
  1148. <transition>
  1149. <stimulus>ev_reopen</stimulus>
  1150. <target>new</target>
  1151. <actions/>
  1152. </transition>
  1153. </transitions>
  1154. </state>
  1155. <state id="pending">
  1156. <flags>
  1157. <attribute id="ref">
  1158. <read_only/>
  1159. </attribute>
  1160. <attribute id="org_id">
  1161. <mandatory/>
  1162. </attribute>
  1163. <attribute id="team_id">
  1164. <mandatory/>
  1165. </attribute>
  1166. <attribute id="agent_id">
  1167. <mandatory/>
  1168. </attribute>
  1169. <attribute id="priority">
  1170. <read_only/>
  1171. </attribute>
  1172. <attribute id="start_date">
  1173. <read_only/>
  1174. </attribute>
  1175. <attribute id="last_update">
  1176. <read_only/>
  1177. </attribute>
  1178. <attribute id="close_date">
  1179. <hidden/>
  1180. </attribute>
  1181. <attribute id="request_type">
  1182. <read_only/>
  1183. </attribute>
  1184. <attribute id="approver_id">
  1185. <read_only/>
  1186. </attribute>
  1187. <attribute id="assignment_date">
  1188. <read_only/>
  1189. </attribute>
  1190. <attribute id="resolution_date">
  1191. <hidden/>
  1192. </attribute>
  1193. <attribute id="last_pending_date">
  1194. <read_only/>
  1195. </attribute>
  1196. <attribute id="time_spent">
  1197. <hidden/>
  1198. </attribute>
  1199. <attribute id="resolution_code">
  1200. <hidden/>
  1201. </attribute>
  1202. <attribute id="solution">
  1203. <hidden/>
  1204. </attribute>
  1205. <attribute id="pending_reason">
  1206. <mandatory/>
  1207. <must_prompt/>
  1208. </attribute>
  1209. <attribute id="user_satisfaction">
  1210. <hidden/>
  1211. </attribute>
  1212. <attribute id="user_comment">
  1213. <hidden/>
  1214. </attribute>
  1215. <attribute id="tto_escalation_deadline">
  1216. <hidden/>
  1217. </attribute>
  1218. <attribute id="sla_tto_passed">
  1219. <read_only/>
  1220. </attribute>
  1221. <attribute id="sla_tto_over">
  1222. <read_only/>
  1223. </attribute>
  1224. <attribute id="sla_ttr_passed">
  1225. <hidden/>
  1226. </attribute>
  1227. <attribute id="ttr_escalation_deadline">
  1228. <hidden/>
  1229. </attribute>
  1230. <attribute id="sla_ttr_over">
  1231. <hidden/>
  1232. </attribute>
  1233. </flags>
  1234. <transitions>
  1235. <transition>
  1236. <stimulus>ev_assign</stimulus>
  1237. <target>assigned</target>
  1238. <actions>
  1239. </actions>
  1240. </transition>
  1241. <transition>
  1242. <stimulus>ev_autoresolve</stimulus>
  1243. <target>resolved</target>
  1244. <actions>
  1245. <action>
  1246. <verb>SetResolveDate</verb>
  1247. </action>
  1248. <action>
  1249. <verb>resolveChilds</verb>
  1250. </action>
  1251. </actions>
  1252. </transition>
  1253. </transitions>
  1254. </state>
  1255. <state id="resolved">
  1256. <flags>
  1257. <attribute id="ref">
  1258. <read_only/>
  1259. </attribute>
  1260. <attribute id="org_id">
  1261. <read_only/>
  1262. </attribute>
  1263. <attribute id="caller_id">
  1264. <read_only/>
  1265. </attribute>
  1266. <attribute id="origin">
  1267. <read_only/>
  1268. </attribute>
  1269. <attribute id="team_id">
  1270. <read_only/>
  1271. </attribute>
  1272. <attribute id="agent_id">
  1273. <read_only/>
  1274. </attribute>
  1275. <attribute id="impact">
  1276. <read_only/>
  1277. </attribute>
  1278. <attribute id="urgency">
  1279. <read_only/>
  1280. </attribute>
  1281. <attribute id="priority">
  1282. <read_only/>
  1283. </attribute>
  1284. <attribute id="start_date">
  1285. <read_only/>
  1286. </attribute>
  1287. <attribute id="last_update">
  1288. <read_only/>
  1289. </attribute>
  1290. <attribute id="close_date">
  1291. <hidden/>
  1292. </attribute>
  1293. <attribute id="request_type">
  1294. <read_only/>
  1295. </attribute>
  1296. <attribute id="approver_id">
  1297. <read_only/>
  1298. </attribute>
  1299. <attribute id="service_id">
  1300. <mandatory/>
  1301. <must_prompt/>
  1302. </attribute>
  1303. <attribute id="servicesubcategory_id">
  1304. <must_prompt/>
  1305. </attribute>
  1306. <attribute id="escalation_flag">
  1307. <read_only/>
  1308. </attribute>
  1309. <attribute id="escalation_reason">
  1310. <read_only/>
  1311. </attribute>
  1312. <attribute id="assignment_date">
  1313. <read_only/>
  1314. </attribute>
  1315. <attribute id="resolution_date">
  1316. <read_only/>
  1317. </attribute>
  1318. <attribute id="last_pending_date">
  1319. <hidden/>
  1320. </attribute>
  1321. <attribute id="time_spent">
  1322. <read_only/>
  1323. </attribute>
  1324. <attribute id="resolution_code">
  1325. <mandatory/>
  1326. <must_prompt/>
  1327. </attribute>
  1328. <attribute id="solution">
  1329. <mandatory/>
  1330. <must_prompt/>
  1331. </attribute>
  1332. <attribute id="pending_reason">
  1333. <read_only/>
  1334. </attribute>
  1335. <attribute id="user_satisfaction">
  1336. <hidden/>
  1337. </attribute>
  1338. <attribute id="user_comment">
  1339. <hidden/>
  1340. </attribute>
  1341. <attribute id="parent_request_id">
  1342. <read_only/>
  1343. </attribute>
  1344. <attribute id="parent_change_id">
  1345. <read_only/>
  1346. </attribute>
  1347. <attribute id="parent_problem_id">
  1348. <read_only/>
  1349. </attribute>
  1350. <attribute id="title">
  1351. <read_only/>
  1352. </attribute>
  1353. <attribute id="description">
  1354. <read_only/>
  1355. </attribute>
  1356. <attribute id="tto_escalation_deadline">
  1357. <hidden/>
  1358. </attribute>
  1359. <attribute id="sla_tto_passed">
  1360. <read_only/>
  1361. </attribute>
  1362. <attribute id="sla_tto_over">
  1363. <read_only/>
  1364. </attribute>
  1365. <attribute id="sla_ttr_passed">
  1366. <read_only/>
  1367. </attribute>
  1368. <attribute id="ttr_escalation_deadline">
  1369. <hidden/>
  1370. </attribute>
  1371. <attribute id="sla_ttr_over">
  1372. <read_only/>
  1373. </attribute>
  1374. </flags>
  1375. <transitions>
  1376. <transition>
  1377. <stimulus>ev_close</stimulus>
  1378. <target>closed</target>
  1379. <actions>
  1380. <action>
  1381. <verb>SetClosureDate</verb>
  1382. </action>
  1383. </actions>
  1384. </transition>
  1385. <transition>
  1386. <stimulus>ev_reopen</stimulus>
  1387. <target>assigned</target>
  1388. <actions>
  1389. </actions>
  1390. </transition>
  1391. <transition>
  1392. <stimulus>ev_autoresolve</stimulus>
  1393. <target>resolved</target>
  1394. <actions>
  1395. <action>
  1396. <verb>SetResolveDate</verb>
  1397. </action>
  1398. <action>
  1399. <verb>resolveChilds</verb>
  1400. </action>
  1401. </actions>
  1402. </transition>
  1403. </transitions>
  1404. </state>
  1405. <state id="closed">
  1406. <flags>
  1407. <attribute id="ref">
  1408. <read_only/>
  1409. </attribute>
  1410. <attribute id="org_id">
  1411. <read_only/>
  1412. </attribute>
  1413. <attribute id="caller_id">
  1414. <read_only/>
  1415. </attribute>
  1416. <attribute id="origin">
  1417. <read_only/>
  1418. </attribute>
  1419. <attribute id="team_id">
  1420. <read_only/>
  1421. </attribute>
  1422. <attribute id="agent_id">
  1423. <read_only/>
  1424. </attribute>
  1425. <attribute id="start_date">
  1426. <read_only/>
  1427. </attribute>
  1428. <attribute id="last_update">
  1429. <read_only/>
  1430. </attribute>
  1431. <attribute id="private_log">
  1432. <read_only/>
  1433. </attribute>
  1434. <attribute id="request_type">
  1435. <read_only/>
  1436. </attribute>
  1437. <attribute id="impact">
  1438. <read_only/>
  1439. </attribute>
  1440. <attribute id="urgency">
  1441. <read_only/>
  1442. </attribute>
  1443. <attribute id="priority">
  1444. <read_only/>
  1445. </attribute>
  1446. <attribute id="approver_id">
  1447. <read_only/>
  1448. </attribute>
  1449. <attribute id="service_id">
  1450. <read_only/>
  1451. </attribute>
  1452. <attribute id="servicesubcategory_id">
  1453. <read_only/>
  1454. </attribute>
  1455. <attribute id="escalation_flag">
  1456. <read_only/>
  1457. </attribute>
  1458. <attribute id="escalation_reason">
  1459. <read_only/>
  1460. </attribute>
  1461. <attribute id="assignment_date">
  1462. <read_only/>
  1463. </attribute>
  1464. <attribute id="resolution_date">
  1465. <read_only/>
  1466. </attribute>
  1467. <attribute id="close_date">
  1468. <read_only/>
  1469. </attribute>
  1470. <attribute id="last_pending_date">
  1471. <hidden/>
  1472. </attribute>
  1473. <attribute id="time_spent">
  1474. <read_only/>
  1475. </attribute>
  1476. <attribute id="resolution_code">
  1477. <read_only/>
  1478. </attribute>
  1479. <attribute id="solution">
  1480. <read_only/>
  1481. </attribute>
  1482. <attribute id="pending_reason">
  1483. <read_only/>
  1484. </attribute>
  1485. <attribute id="public_log">
  1486. <read_only/>
  1487. </attribute>
  1488. <attribute id="user_satisfaction">
  1489. <must_prompt/>
  1490. </attribute>
  1491. <attribute id="user_comment">
  1492. <must_prompt/>
  1493. </attribute>
  1494. <attribute id="pending_reason">
  1495. <read_only/>
  1496. </attribute>
  1497. <attribute id="parent_request_id">
  1498. <read_only/>
  1499. </attribute>
  1500. <attribute id="parent_change_id">
  1501. <read_only/>
  1502. </attribute>
  1503. <attribute id="parent_problem_id">
  1504. <read_only/>
  1505. </attribute>
  1506. <attribute id="title">
  1507. <read_only/>
  1508. </attribute>
  1509. <attribute id="description">
  1510. <read_only/>
  1511. </attribute>
  1512. <attribute id="tto_escalation_deadline">
  1513. <hidden/>
  1514. </attribute>
  1515. <attribute id="sla_tto_passed">
  1516. <read_only/>
  1517. </attribute>
  1518. <attribute id="sla_tto_over">
  1519. <read_only/>
  1520. </attribute>
  1521. <attribute id="sla_ttr_passed">
  1522. <read_only/>
  1523. </attribute>
  1524. <attribute id="ttr_escalation_deadline">
  1525. <hidden/>
  1526. </attribute>
  1527. <attribute id="sla_ttr_over">
  1528. <read_only/>
  1529. </attribute>
  1530. </flags>
  1531. <transitions/>
  1532. </state>
  1533. </states>
  1534. </lifecycle>
  1535. <methods>
  1536. <method id="SetAssignedDate">
  1537. <static>false</static>
  1538. <access>public</access>
  1539. <type>LifecycleAction</type>
  1540. <code><![CDATA[ public function SetAssignedDate($sStimulusCode)
  1541. {
  1542. $this->Set('assignment_date', time());
  1543. return true;
  1544. }]]></code>
  1545. </method>
  1546. <method id="SetLastPendingDate">
  1547. <static>false</static>
  1548. <access>public</access>
  1549. <type>LifecycleAction</type>
  1550. <code><![CDATA[ public function SetLastPendingDate($sStimulusCode)
  1551. {
  1552. $this->Set('last_pending_date', time());
  1553. return true;
  1554. }]]></code>
  1555. </method>
  1556. <method id="SetResolveDate">
  1557. <static>false</static>
  1558. <access>public</access>
  1559. <type>LifecycleAction</type>
  1560. <code><![CDATA[ public function SetResolveDate($sStimulusCode)
  1561. {
  1562. $this->Set('resolution_date', time());
  1563. $iTimeSpent = time() - AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1564. $this->Set('time_spent', $iTimeSpent);
  1565. return true;
  1566. }]]></code>
  1567. </method>
  1568. <method id="SetClosureDate">
  1569. <static>false</static>
  1570. <access>public</access>
  1571. <type>LifecycleAction</type>
  1572. <code><![CDATA[ public function SetClosureDate($sStimulusCode)
  1573. {
  1574. $this->Set('close_date', time());
  1575. return true;
  1576. }]]></code>
  1577. </method>
  1578. <method id="SetApprover">
  1579. <static>false</static>
  1580. <access>public</access>
  1581. <type>LifecycleAction</type>
  1582. <code><![CDATA[ public function SetApprover($sStimulusCode)
  1583. {
  1584. $this->Set('approver_id', UserRights::GetUserId());
  1585. return true;
  1586. }]]></code>
  1587. </method>
  1588. <method id="ComputePriority">
  1589. <comment>/** Compute the priority of the ticket based on its impact and urgency&#13;
  1590. * @return integer The priority of the ticket 1(high) .. 3(low)&#13;
  1591. */</comment>
  1592. <static>false</static>
  1593. <access>public</access>
  1594. <type>LifecycleAction</type>
  1595. <code><![CDATA[ public function ComputePriority()
  1596. {
  1597. // priority[impact][urgency]
  1598. $aPriorities = array(
  1599. // single person
  1600. 1 => array(
  1601. 1 => 1,
  1602. 2 => 1,
  1603. 3 => 2,
  1604. 4 => 4,
  1605. ),
  1606. // a group
  1607. 2 => array(
  1608. 1 => 1,
  1609. 2 => 2,
  1610. 3 => 3,
  1611. 4 => 4,
  1612. ),
  1613. // a departement!
  1614. 3 => array(
  1615. 1 => 2,
  1616. 2 => 3,
  1617. 3 => 3,
  1618. 4 => 4,
  1619. ),
  1620. );
  1621. $iPriority = $aPriorities[(int)$this->Get('impact')][(int)$this->Get('urgency')];
  1622. return $iPriority;
  1623. }]]></code>
  1624. </method>
  1625. <method id="ComputeValues">
  1626. <static>false</static>
  1627. <access>public</access>
  1628. <type>Overload-DBObject</type>
  1629. <code><![CDATA[ public function ComputeValues()
  1630. {
  1631. // Compute the priority of the ticket
  1632. $this->Set('priority', $this->ComputePriority());
  1633. $sCurrRef = $this->Get('ref');
  1634. if (strlen($sCurrRef) == 0)
  1635. {
  1636. $iKey = $this->GetKey();
  1637. if ($iKey < 0)
  1638. {
  1639. // Object not yet in the Database
  1640. $iKey = MetaModel::GetNextKey(get_class($this));
  1641. }
  1642. $sName = sprintf('R-%06d', $iKey);
  1643. $this->Set('ref', $sName);
  1644. }
  1645. return parent::ComputeValues();
  1646. }]]></code>
  1647. </method>
  1648. <method id="DisplayBareRelations">
  1649. <static>false</static>
  1650. <access>public</access>
  1651. <type>Overload-cmdbAbstractObject</type>
  1652. <code><![CDATA[ function DisplayBareRelations(WebPage $oPage, $bEditMode = false)
  1653. {
  1654. parent::DisplayBareRelations($oPage, $bEditMode);
  1655. if (!$bEditMode)
  1656. {
  1657. if (MetaModel::IsValidClass('KnownError'))
  1658. {
  1659. //Search for known errors
  1660. $oPage->SetCurrentTab(Dict::S('Class:UserRequest:KnownErrorList'));
  1661. $iTicketID = $this->GetKey();;
  1662. $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"));
  1663. $iNumberKE=$oKnownErrorSet->count();
  1664. if ($iNumberKE > 0)
  1665. {
  1666. $oPage->SetCurrentTab(Dict::S('Class:UserRequest:KnownErrorList')." ($iNumberKE)");
  1667. }
  1668. else
  1669. {
  1670. $oPage->SetCurrentTab(Dict::S('Class:UserRequest:KnownErrorList'));
  1671. }
  1672. self::DisplaySet($oPage, $oKnownErrorSet, array ('menu' => false));
  1673. }
  1674. }
  1675. }]]></code>
  1676. </method>
  1677. <method id="GetIcon">
  1678. <comment>/**&#13;
  1679. * Get the icon representing this object&#13;
  1680. * @param boolean $bImgTag If true the result is a full IMG tag (or an emtpy string if no icon is defined)&#13;
  1681. * @return string Either the full IMG tag ($bImgTag == true) or just the path to the icon file&#13;
  1682. */</comment>
  1683. <static>false</static>
  1684. <access>public</access>
  1685. <type>Overload-DBObject</type>
  1686. <code><![CDATA[ public function GetIcon($bImgTag = true)
  1687. {
  1688. $sStatus = $this->Get('status');
  1689. switch($this->GetState())
  1690. {
  1691. case 'escalated_tto':
  1692. case 'escalated_ttr':
  1693. $sIcon = self::MakeIconFromName('user-request-escalated.png');
  1694. break;
  1695. case 'resolved':
  1696. case 'closed':
  1697. $sIcon = self::MakeIconFromName('user-request-closed.png');
  1698. break;
  1699. case 'new':
  1700. case 'approved':
  1701. $sIcon = self::MakeIconFromName('user-request.png');
  1702. $iEscalationDeadline = $this->Get('tto_escalation_deadline');
  1703. if ($iEscalationDeadline != null)
  1704. {
  1705. // A SLA is running
  1706. $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1707. $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
  1708. if ($ratio <= 0)
  1709. {
  1710. $sIcon = self::MakeIconFromName('user-request-escalated.png');
  1711. }
  1712. else if ($ratio <= 0.25)
  1713. {
  1714. $sIcon = self::MakeIconFromName('user-request-deadline.png');
  1715. }
  1716. }
  1717. break;
  1718. case 'assigned':
  1719. $sIcon = self::MakeIconFromName('user-request.png');
  1720. $iEscalationDeadline = $this->Get('ttr_escalation_deadline');
  1721. if ($iEscalationDeadline != null)
  1722. {
  1723. // A SLA is running
  1724. $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1725. $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
  1726. if ($ratio <= 0)
  1727. {
  1728. $sIcon = self::MakeIconFromName('user-request-escalated.png');
  1729. }
  1730. else if ($ratio <= 0.25)
  1731. {
  1732. $sIcon = self::MakeIconFromName('user-request-deadline.png');
  1733. }
  1734. }
  1735. break;
  1736. default:
  1737. $sIcon = MetaModel::GetClassIcon(get_class($this), $bImgTag);
  1738. }
  1739. return $sIcon;
  1740. }]]></code>
  1741. </method>
  1742. <method id="MakeIconFromName">
  1743. <static>true</static>
  1744. <access>protected</access>
  1745. <type>Overload-DBObject</type>
  1746. <code><![CDATA[ protected static function MakeIconFromName($sIconName, $bImgTag = true)
  1747. {
  1748. $sIcon = '';
  1749. if ($sIconName != '')
  1750. {
  1751. $sPath = '../env-'.utils::GetCurrentEnvironment().'/itop-request-mgmt-itil/images/'.$sIconName;
  1752. if ($bImgTag)
  1753. {
  1754. $sIcon = "<img src=\"$sPath\" style=\"vertical-align:middle;\"/>";
  1755. }
  1756. else
  1757. {
  1758. $sIcon = $sPath;
  1759. }
  1760. }
  1761. return $sIcon;
  1762. }]]></code>
  1763. </method>
  1764. <method id="GetHilightClass">
  1765. <static>false</static>
  1766. <access>public</access>
  1767. <type>Overload-iDisplay</type>
  1768. <code><![CDATA[ public function GetHilightClass()
  1769. {
  1770. $sHilightClass = '';
  1771. switch($this->GetState())
  1772. {
  1773. case 'new':
  1774. case 'approved':
  1775. $iEscalationDeadline = $this->Get('tto_escalation_deadline');
  1776. if ($iEscalationDeadline != null)
  1777. {
  1778. // A SLA is running
  1779. $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1780. $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
  1781. if ($ratio <= 0)
  1782. {
  1783. $sHilightClass = HILIGHT_CLASS_CRITICAL;
  1784. }
  1785. else if ($ratio <= 0.25)
  1786. {
  1787. $sHilightClass = HILIGHT_CLASS_WARNING;
  1788. }
  1789. }
  1790. break;
  1791. case 'assigned':
  1792. $iEscalationDeadline = $this->Get('ttr_escalation_deadline');
  1793. if ($iEscalationDeadline != null)
  1794. {
  1795. // A SLA is running
  1796. $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
  1797. $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
  1798. if ($ratio <= 0)
  1799. {
  1800. $sHilightClass = HILIGHT_CLASS_CRITICAL;
  1801. }
  1802. else if ($ratio <= 0.25)
  1803. {
  1804. $sHilightClass = HILIGHT_CLASS_WARNING;
  1805. }
  1806. }
  1807. break;
  1808. case 'escalated_tto':
  1809. case 'escalated_ttr':
  1810. $sHilightClass = HILIGHT_CLASS_CRITICAL;
  1811. break;
  1812. }
  1813. return $sHilightClass;
  1814. }]]></code>
  1815. </method>
  1816. <method id="resolveChilds">
  1817. <static>false</static>
  1818. <access>public</access>
  1819. <type>LifecycleAction</type>
  1820. <code><![CDATA[ public function resolveChilds($sStimulusCode)
  1821. {
  1822. $oMyChange = MetaModel::NewObject("CMDBChange");
  1823. $oMyChange->Set("date", time());
  1824. $sUserString = CMDBChange::GetCurrentUserName();
  1825. $oMyChange->Set("userinfo", $sUserString."(automatic resolution)");
  1826. $iChangeId = $oMyChange->DBInsert();
  1827. $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket";
  1828. $oChildRequestSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL),
  1829. array(),
  1830. array(
  1831. 'ticket' => $this->GetKey(),
  1832. )
  1833. );
  1834. while($oRequest = $oChildRequestSet->Fetch())
  1835. {
  1836. if ( $oRequest->Get('status') != 'resolved')
  1837. {
  1838. $oRequest->set('servicesubcategory_id',$this->Get('servicesubcategory_id'));
  1839. $oRequest->set('service_id',$this->Get('service_id'));
  1840. $oRequest->set('team_id',$this->Get('team_id'));
  1841. $oRequest->set('agent_id',$this->Get('agent_id'));
  1842. $oRequest->set('resolution_code',$this->Get('resolution_code'));
  1843. $oRequest->set('solution','Automatically resolved by request:[[UserRequest:'.$this->Get('ref').']]');
  1844. $oRequest->ApplyStimulus('ev_autoresolve');
  1845. $oRequest->DBUpdateTracked($oMyChange);
  1846. }
  1847. }
  1848. return true;
  1849. }]]></code>
  1850. </method>
  1851. <method id="UpdateChildRequestLog">
  1852. <static>false</static>
  1853. <access>public</access>
  1854. <type>LifecycleAction</type>
  1855. <code><![CDATA[ public function UpdateChildRequestLog()
  1856. {
  1857. $sLogPublic = utils::ReadPostedParam('attr_public_log', null,false,'raw_data');
  1858. if ( $sLogPublic != null)
  1859. {
  1860. $oMyChange = MetaModel::NewObject("CMDBChange");
  1861. $oMyChange->Set("date", time());
  1862. $sUserString = CMDBChange::GetCurrentUserName();
  1863. $oMyChange->Set("userinfo", $sUserString."(automatic update)");
  1864. $iChangeId = $oMyChange->DBInsert();
  1865. $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket";
  1866. $oChildRequestSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL),
  1867. array(),
  1868. array(
  1869. 'ticket' => $this->GetKey(),
  1870. )
  1871. );
  1872. while($oRequest = $oChildRequestSet->Fetch())
  1873. {
  1874. $oRequest->set('public_log',$sLogPublic);
  1875. $oRequest->DBUpdateTracked($oMyChange);
  1876. }
  1877. }
  1878. $sLogPrivate = utils::ReadPostedParam('attr_private_log', null,false,'raw_data');
  1879. if ( $sLogPrivate != null)
  1880. {
  1881. $oMyChange = MetaModel::NewObject("CMDBChange");
  1882. $oMyChange->Set("date", time());
  1883. $sUserString = CMDBChange::GetCurrentUserName();
  1884. $oMyChange->Set("userinfo", $sUserString."(automatic update)");
  1885. $iChangeId = $oMyChange->DBInsert();
  1886. $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket";
  1887. $oChildRequestSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL),
  1888. array(),
  1889. array(
  1890. 'ticket' => $this->GetKey(),
  1891. )
  1892. );
  1893. while($oRequest = $oChildRequestSet->Fetch())
  1894. {
  1895. $oRequest->set('private_log',$sLogPrivate);
  1896. $oRequest->DBUpdateTracked($oMyChange);
  1897. }
  1898. }
  1899. return true;
  1900. }]]></code>
  1901. </method>
  1902. <method id="ComputeImpactedItems">
  1903. <static>false</static>
  1904. <access>public</access>
  1905. <type>LifecycleAction</type>
  1906. <code><![CDATA[ public function ComputeImpactedItems()
  1907. {
  1908. $oToNotify = $this->Get('contacts_list');
  1909. $oToImpact = $this->Get('functionalcis_list');
  1910. $oImpactedInfras = DBObjectSet::FromLinkSet($this, 'functionalcis_list', 'functionalci_id');
  1911. $aComputed = $oImpactedInfras->GetRelatedObjects('impacts', 10);
  1912. if (isset($aComputed['FunctionalCI']) && is_array($aComputed['FunctionalCI']))
  1913. {
  1914. foreach($aComputed['FunctionalCI'] as $iKey => $oObject)
  1915. {
  1916. $oNewLink = new lnkFunctionalCIToTicket();
  1917. $oNewLink->Set('functionalci_id', $iKey);
  1918. $oNewLink->Set('impact', 'potentially impacted (automatically computed)');
  1919. $oToImpact->AddObject($oNewLink);
  1920. }
  1921. }
  1922. if (isset($aComputed['Contact']) && is_array($aComputed['Contact']))
  1923. {
  1924. foreach($aComputed['Contact'] as $iKey => $oObject)
  1925. {
  1926. $oNewLink = new lnkContactToTicket();
  1927. $oNewLink->Set('contact_id', $iKey);
  1928. $oNewLink->Set('role', 'contact automatically computed');
  1929. $oToNotify->AddObject($oNewLink);
  1930. }
  1931. }
  1932. parent::OnInsert();
  1933. }]]></code>
  1934. </method>
  1935. <method id="OnInsert">
  1936. <static>false</static>
  1937. <access>protected</access>
  1938. <type>Overload-DBObject</type>
  1939. <code><![CDATA[ protected function OnInsert()
  1940. {
  1941. $this->ComputeImpactedItems();
  1942. $this->Set('last_update', time());
  1943. $this->Set('start_date', time());
  1944. }]]></code>
  1945. </method>
  1946. <method id="OnUpdate">
  1947. <static>false</static>
  1948. <access>protected</access>
  1949. <type>Overload-DBObject</type>
  1950. <code><![CDATA[ protected function OnUpdate()
  1951. {
  1952. $this->Set('last_update', time());
  1953. $this->UpdateChildRequestLog();
  1954. }]]></code>
  1955. </method>
  1956. </methods>
  1957. <presentation>
  1958. <details>
  1959. <items>
  1960. <item id="functionalcis_list">
  1961. <rank>10</rank>
  1962. </item>
  1963. <item id="contacts_list">
  1964. <rank>20</rank>
  1965. </item>
  1966. <item id="related_request_list">
  1967. <rank>30</rank>
  1968. </item>
  1969. <item id="workorders_list">
  1970. <rank>40</rank>
  1971. </item>
  1972. <item id="col:col1">
  1973. <rank>50</rank>
  1974. <items>
  1975. <item id="fieldset:Ticket:baseinfo">
  1976. <rank>10</rank>
  1977. <items>
  1978. <item id="org_id">
  1979. <rank>10</rank>
  1980. </item>
  1981. <item id="caller_id">
  1982. <rank>20</rank>
  1983. </item>
  1984. <item id="status">
  1985. <rank>30</rank>
  1986. </item>
  1987. <item id="origin">
  1988. <rank>40</rank>
  1989. </item>
  1990. <item id="title">
  1991. <rank>50</rank>
  1992. </item>
  1993. <item id="description">
  1994. <rank>60</rank>
  1995. </item>
  1996. </items>
  1997. </item>
  1998. <item id="fieldset:Ticket:moreinfo">
  1999. <rank>20</rank>
  2000. <items>
  2001. <item id="service_id">
  2002. <rank>10</rank>
  2003. </item>
  2004. <item id="servicesubcategory_id">
  2005. <rank>20</rank>
  2006. </item>
  2007. <item id="escalation_flag">
  2008. <rank>30</rank>
  2009. </item>
  2010. <item id="escalation_reason">
  2011. <rank>40</rank>
  2012. </item>
  2013. <item id="pending_reason">
  2014. <rank>50</rank>
  2015. </item>
  2016. </items>
  2017. </item>
  2018. </items>
  2019. </item>
  2020. <item id="col:col2">
  2021. <rank>60</rank>
  2022. <items>
  2023. <item id="fieldset:Ticket:Type">
  2024. <rank>10</rank>
  2025. <items>
  2026. <item id="request_type">
  2027. <rank>10</rank>
  2028. </item>
  2029. <item id="impact">
  2030. <rank>20</rank>
  2031. </item>
  2032. <item id="urgency">
  2033. <rank>30</rank>
  2034. </item>
  2035. <item id="priority">
  2036. <rank>40</rank>
  2037. </item>
  2038. </items>
  2039. </item>
  2040. <item id="fieldset:Ticket:contact">
  2041. <rank>20</rank>
  2042. <items>
  2043. <item id="team_id">
  2044. <rank>10</rank>
  2045. </item>
  2046. <item id="agent_id">
  2047. <rank>20</rank>
  2048. </item>
  2049. <item id="approver_id">
  2050. <rank>30</rank>
  2051. </item>
  2052. </items>
  2053. </item>
  2054. <item id="fieldset:Ticket:date">
  2055. <rank>30</rank>
  2056. <items>
  2057. <item id="start_date">
  2058. <rank>10</rank>
  2059. </item>
  2060. <item id="last_update">
  2061. <rank>20</rank>
  2062. </item>
  2063. <item id="assignment_date">
  2064. <rank>30</rank>
  2065. </item>
  2066. <item id="tto_escalation_deadline">
  2067. <rank>40</rank>
  2068. </item>
  2069. <item id="ttr_escalation_deadline">
  2070. <rank>50</rank>
  2071. </item>
  2072. <item id="last_pending_date">
  2073. <rank>60</rank>
  2074. </item>
  2075. <item id="resolution_date">
  2076. <rank>70</rank>
  2077. </item>
  2078. <item id="close_date">
  2079. <rank>80</rank>
  2080. </item>
  2081. </items>
  2082. </item>
  2083. </items>
  2084. </item>
  2085. <item id="col:col3">
  2086. <rank>70</rank>
  2087. <items>
  2088. <item id="fieldset:Relations">
  2089. <rank>10</rank>
  2090. <items>
  2091. <item id="parent_request_id">
  2092. <rank>10</rank>
  2093. </item>
  2094. <item id="parent_incident_id">
  2095. <rank>20</rank>
  2096. </item>
  2097. <item id="parent_problem_id">
  2098. <rank>30</rank>
  2099. </item>
  2100. <item id="parent_change_id">
  2101. <rank>40</rank>
  2102. </item>
  2103. </items>
  2104. </item>
  2105. <item id="fieldset:Ticket:resolution">
  2106. <rank>20</rank>
  2107. <items>
  2108. <item id="resolution_code">
  2109. <rank>10</rank>
  2110. </item>
  2111. <item id="solution">
  2112. <rank>20</rank>
  2113. </item>
  2114. <item id="time_spent">
  2115. <rank>30</rank>
  2116. </item>
  2117. <item id="user_satisfaction">
  2118. <rank>40</rank>
  2119. </item>
  2120. <item id="user_comment">
  2121. <rank>50</rank>
  2122. </item>
  2123. </items>
  2124. </item>
  2125. <item id="fieldset:Ticket:SLA">
  2126. <rank>30</rank>
  2127. <items>
  2128. <item id="sla_tto_passed">
  2129. <rank>10</rank>
  2130. </item>
  2131. <item id="sla_tto_over">
  2132. <rank>20</rank>
  2133. </item>
  2134. <item id="sla_ttr_passed">
  2135. <rank>30</rank>
  2136. </item>
  2137. <item id="sla_ttr_over">
  2138. <rank>40</rank>
  2139. </item>
  2140. </items>
  2141. </item>
  2142. </items>
  2143. </item>
  2144. </items>
  2145. </details>
  2146. <search>
  2147. <items>
  2148. <item id="ref">
  2149. <rank>10</rank>
  2150. </item>
  2151. <item id="org_id">
  2152. <rank>20</rank>
  2153. </item>
  2154. <item id="title">
  2155. <rank>30</rank>
  2156. </item>
  2157. <item id="description">
  2158. <rank>40</rank>
  2159. </item>
  2160. <item id="start_date">
  2161. <rank>50</rank>
  2162. </item>
  2163. <item id="end_date">
  2164. <rank>60</rank>
  2165. </item>
  2166. <item id="resolution_date">
  2167. <rank>70</rank>
  2168. </item>
  2169. <item id="close_date">
  2170. <rank>80</rank>
  2171. </item>
  2172. <item id="status">
  2173. <rank>90</rank>
  2174. </item>
  2175. <item id="caller_id">
  2176. <rank>100</rank>
  2177. </item>
  2178. <item id="origin">
  2179. <rank>110</rank>
  2180. </item>
  2181. <item id="request_type">
  2182. <rank>120</rank>
  2183. </item>
  2184. <item id="impact">
  2185. <rank>130</rank>
  2186. </item>
  2187. <item id="urgency">
  2188. <rank>140</rank>
  2189. </item>
  2190. <item id="priority">
  2191. <rank>150</rank>
  2192. </item>
  2193. <item id="service_id">
  2194. <rank>160</rank>
  2195. </item>
  2196. <item id="servicesubcategory_id">
  2197. <rank>170</rank>
  2198. </item>
  2199. <item id="team_id">
  2200. <rank>180</rank>
  2201. </item>
  2202. <item id="agent_id">
  2203. <rank>190</rank>
  2204. </item>
  2205. <item id="escalation_flag">
  2206. <rank>200</rank>
  2207. </item>
  2208. <item id="resolution_code">
  2209. <rank>210</rank>
  2210. </item>
  2211. <item id="user_satisfaction">
  2212. <rank>220</rank>
  2213. </item>
  2214. <item id="sla_tto_passed">
  2215. <rank>230</rank>
  2216. </item>
  2217. <item id="sla_ttr_passed">
  2218. <rank>240</rank>
  2219. </item>
  2220. </items>
  2221. </search>
  2222. <list>
  2223. <items>
  2224. <item id="title">
  2225. <rank>10</rank>
  2226. </item>
  2227. <item id="org_id">
  2228. <rank>20</rank>
  2229. </item>
  2230. <item id="caller_id">
  2231. <rank>30</rank>
  2232. </item>
  2233. <item id="start_date">
  2234. <rank>40</rank>
  2235. </item>
  2236. <item id="status">
  2237. <rank>50</rank>
  2238. </item>
  2239. <item id="agent_id">
  2240. <rank>60</rank>
  2241. </item>
  2242. </items>
  2243. </list>
  2244. </presentation>
  2245. </class>
  2246. </classes>
  2247. <menus>
  2248. <menu id="WelcomeMenuPage" xsi:type="DashboardMenuNode" _delta="must_exist">
  2249. <definition>
  2250. <cells>
  2251. <cell id="1" _delta="define">
  2252. <rank>1</rank>
  2253. <dashlets>
  2254. <dashlet id="11" xsi:type="DashletHeaderDynamic">
  2255. <rank>0</rank>
  2256. <title>Menu:RequestManagement</title>
  2257. <icon>itop-welcome-itil/images/user-request-deadline.png</icon>
  2258. <subtitle>Open Requests</subtitle>
  2259. <query>SELECT UserRequest WHERE status != "closed"</query>
  2260. <group_by>status</group_by>
  2261. <values>new,assigned,escalated_tto,escalated_ttr,resolved</values>
  2262. </dashlet>
  2263. <dashlet id="12" xsi:type="DashletObjectList">
  2264. <rank>1</rank>
  2265. <title>UI:WelcomeMenu:MyCalls</title>
  2266. <query>SELECT UserRequest AS i WHERE i.agent_id = :current_contact_id AND status NOT IN ("closed", "resolved")</query>
  2267. <menu>true</menu>
  2268. </dashlet>
  2269. </dashlets>
  2270. </cell>
  2271. </cells>
  2272. </definition>
  2273. </menu>
  2274. <menu id="RequestManagement" xsi:type="MenuGroup" _delta="define">
  2275. <rank>30</rank>
  2276. <enable_stimulus/>
  2277. </menu>
  2278. <menu id="UserRequest:Overview" xsi:type="DashboardMenuNode" _delta="define">
  2279. <rank>0</rank>
  2280. <parent>RequestManagement</parent>
  2281. <definition_file>overview.xml</definition_file>
  2282. </menu>
  2283. <menu id="NewUserRequest" xsi:type="NewObjectMenuNode" _delta="define">
  2284. <rank>1</rank>
  2285. <parent>RequestManagement</parent>
  2286. <class>UserRequest</class>
  2287. </menu>
  2288. <menu id="SearchUserRequests" xsi:type="SearchMenuNode" _delta="define">
  2289. <rank>2</rank>
  2290. <parent>RequestManagement</parent>
  2291. <class>UserRequest</class>
  2292. </menu>
  2293. <menu id="UserRequest:Shortcuts" xsi:type="TemplateMenuNode" _delta="define">
  2294. <rank>3</rank>
  2295. <parent>RequestManagement</parent>
  2296. <template_file/>
  2297. </menu>
  2298. <menu id="UserRequest:MyRequests" xsi:type="OQLMenuNode" _delta="define">
  2299. <rank>0</rank>
  2300. <parent>UserRequest:Shortcuts</parent>
  2301. <oql><![CDATA[SELECT UserRequest WHERE agent_id = :current_contact_id AND status NOT IN ("closed","resolved")]]></oql>
  2302. <do_search/>
  2303. <auto_reload>fast</auto_reload>
  2304. </menu>
  2305. <menu id="UserRequest:EscalatedRequests" xsi:type="OQLMenuNode" _delta="define">
  2306. <rank>1</rank>
  2307. <parent>UserRequest:Shortcuts</parent>
  2308. <oql><![CDATA[SELECT UserRequest WHERE status IN ("escalated_tto", "escalated_ttr") OR escalation_flag="yes"]]></oql>
  2309. <do_search/>
  2310. <auto_reload>fast</auto_reload>
  2311. </menu>
  2312. <menu id="UserRequest:OpenRequests" xsi:type="OQLMenuNode" _delta="define">
  2313. <rank>2</rank>
  2314. <parent>UserRequest:Shortcuts</parent>
  2315. <oql><![CDATA[SELECT UserRequest WHERE status NOT IN ("closed")]]></oql>
  2316. <do_search>1</do_search>
  2317. <auto_reload>fast</auto_reload>
  2318. </menu>
  2319. <menu id="UserRequest:MySupportRequests" xsi:type="OQLMenuNode" _delta="define">
  2320. <rank>3</rank>
  2321. <parent>UserRequest:Shortcuts</parent>
  2322. <oql><![CDATA[SELECT UserRequest WHERE caller_id = :current_contact_id AND status NOT IN ("closed")]]></oql>
  2323. <do_search/>
  2324. <auto_reload>fast</auto_reload>
  2325. </menu>
  2326. </menus>
  2327. </itop_design>