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

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