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

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