datamodel.itop-problem-mgmt.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  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="Problem" _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,problemmgmt</category>
  14. <abstract>false</abstract>
  15. <key_type>autoincrement</key_type>
  16. <db_table>ticket_problem</db_table>
  17. <db_key_field>id</db_key_field>
  18. <db_final_class_field/>
  19. <naming>
  20. <attributes>
  21. <attribute id="ref"/>
  22. </attributes>
  23. </naming>
  24. <display_template/>
  25. <icon>images/problem.png</icon>
  26. <reconciliation>
  27. <attributes>
  28. <attribute id="ref"/>
  29. </attributes>
  30. </reconciliation>
  31. <order>
  32. <columns>
  33. <column id="ref" order="0">
  34. <ascending>false</ascending>
  35. </column>
  36. </columns>
  37. </order>
  38. </properties>
  39. <fields>
  40. <field id="status" xsi:type="AttributeEnum">
  41. <values>
  42. <value>new</value>
  43. <value>assigned</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="org_id" xsi:type="AttributeExternalKey">
  52. <sql>org_id</sql>
  53. <target_class>Organization</target_class>
  54. <is_null_allowed>false</is_null_allowed>
  55. <on_target_delete>DEL_AUTO</on_target_delete>
  56. <jointype/>
  57. </field>
  58. <field id="org_name" xsi:type="AttributeExternalField">
  59. <extkey_attcode>org_id</extkey_attcode>
  60. <target_attcode>name</target_attcode>
  61. </field>
  62. <field id="service_id" xsi:type="AttributeExternalKey">
  63. <filter><![CDATA[SELECT Service AS s JOIN SLA AS sla ON sla.service_id=s.id JOIN lnkContractToSLA AS ln ON ln.sla_id=sla.id JOIN CustomerContract AS cc ON ln.contract_id=cc.id WHERE cc.org_id =:this->org_id]]></filter>
  64. <dependencies>
  65. <attribute id="org_id"/>
  66. </dependencies>
  67. <sql>service_id</sql>
  68. <target_class>Service</target_class>
  69. <is_null_allowed>false</is_null_allowed>
  70. <on_target_delete>DEL_MANUAL</on_target_delete>
  71. <jointype/>
  72. </field>
  73. <field id="service_name" xsi:type="AttributeExternalField">
  74. <extkey_attcode>service_id</extkey_attcode>
  75. <target_attcode>name</target_attcode>
  76. </field>
  77. <field id="servicesubcategory_id" xsi:type="AttributeExternalKey">
  78. <filter><![CDATA[SELECT ServiceSubcategory WHERE service_id = :this->service_id]]></filter>
  79. <dependencies>
  80. <attribute id="service_id"/>
  81. </dependencies>
  82. <sql>servicesubcategory_id</sql>
  83. <target_class>ServiceSubcategory</target_class>
  84. <is_null_allowed>false</is_null_allowed>
  85. <on_target_delete>DEL_MANUAL</on_target_delete>
  86. <jointype/>
  87. </field>
  88. <field id="servicesubcategory_name" xsi:type="AttributeExternalField">
  89. <extkey_attcode>servicesubcategory_id</extkey_attcode>
  90. <target_attcode>name</target_attcode>
  91. </field>
  92. <field id="product" xsi:type="AttributeString">
  93. <sql>product</sql>
  94. <default_value/>
  95. <is_null_allowed>true</is_null_allowed>
  96. </field>
  97. <field id="impact" xsi:type="AttributeEnum">
  98. <values>
  99. <value>1</value>
  100. <value>2</value>
  101. <value>3</value>
  102. </values>
  103. <sql>impact</sql>
  104. <default_value>1</default_value>
  105. <is_null_allowed>false</is_null_allowed>
  106. </field>
  107. <field id="urgency" xsi:type="AttributeEnum">
  108. <values>
  109. <value>1</value>
  110. <value>2</value>
  111. <value>3</value>
  112. </values>
  113. <sql>urgency</sql>
  114. <default_value>1</default_value>
  115. <is_null_allowed>false</is_null_allowed>
  116. </field>
  117. <field id="priority" xsi:type="AttributeEnum">
  118. <values>
  119. <value>1</value>
  120. <value>2</value>
  121. <value>3</value>
  122. </values>
  123. <sql>priority</sql>
  124. <default_value>1</default_value>
  125. <is_null_allowed>false</is_null_allowed>
  126. </field>
  127. <field id="workgroup_id" xsi:type="AttributeExternalKey">
  128. <filter><![CDATA[SELECT Team AS t JOIN CustomerContract AS cc ON cc.support_team_id=t.id JOIN lnkContractToSLA AS ln ON ln.contract_id=cc.id JOIN SLA AS sla ON ln.sla_id=sla.id WHERE sla.service_id = :this->service_id AND cc.org_id = :this->org_id]]></filter>
  129. <dependencies>
  130. <attribute id="org_id"/>
  131. <attribute id="service_id"/>
  132. </dependencies>
  133. <sql>workgroup_id</sql>
  134. <target_class>Team</target_class>
  135. <is_null_allowed>false</is_null_allowed>
  136. <on_target_delete>DEL_MANUAL</on_target_delete>
  137. <jointype/>
  138. </field>
  139. <field id="workgroup_name" xsi:type="AttributeExternalField">
  140. <extkey_attcode>workgroup_id</extkey_attcode>
  141. <target_attcode>name</target_attcode>
  142. </field>
  143. <field id="agent_id" xsi:type="AttributeExternalKey">
  144. <filter><![CDATA[SELECT Person AS p JOIN lnkTeamToContact AS l ON l.contact_id=p.id JOIN Team AS t ON l.team_id=t.id WHERE t.id = :this->workgroup_id]]></filter>
  145. <dependencies>
  146. <attribute id="workgroup_id"/>
  147. </dependencies>
  148. <sql>agent_id</sql>
  149. <target_class>Person</target_class>
  150. <is_null_allowed>true</is_null_allowed>
  151. <on_target_delete>DEL_MANUAL</on_target_delete>
  152. <jointype/>
  153. </field>
  154. <field id="agent_name" xsi:type="AttributeExternalField">
  155. <extkey_attcode>agent_id</extkey_attcode>
  156. <target_attcode>name</target_attcode>
  157. </field>
  158. <field id="agent_email" xsi:type="AttributeExternalField">
  159. <extkey_attcode>agent_id</extkey_attcode>
  160. <target_attcode>email</target_attcode>
  161. </field>
  162. <field id="related_change_id" xsi:type="AttributeExternalKey">
  163. <sql>related_change_id</sql>
  164. <target_class>Change</target_class>
  165. <is_null_allowed>true</is_null_allowed>
  166. <on_target_delete>DEL_MANUAL</on_target_delete>
  167. <jointype/>
  168. </field>
  169. <field id="related_change_ref" xsi:type="AttributeExternalField">
  170. <extkey_attcode>related_change_id</extkey_attcode>
  171. <target_attcode>ref</target_attcode>
  172. </field>
  173. <field id="close_date" xsi:type="AttributeDateTime">
  174. <sql>close_date</sql>
  175. <default_value/>
  176. <is_null_allowed>true</is_null_allowed>
  177. </field>
  178. <field id="last_update" xsi:type="AttributeDateTime">
  179. <sql>last_update</sql>
  180. <default_value/>
  181. <is_null_allowed>true</is_null_allowed>
  182. </field>
  183. <field id="assignment_date" xsi:type="AttributeDateTime">
  184. <sql>assignment_date</sql>
  185. <default_value/>
  186. <is_null_allowed>true</is_null_allowed>
  187. </field>
  188. <field id="resolution_date" xsi:type="AttributeDateTime">
  189. <sql>resolution_date</sql>
  190. <default_value/>
  191. <is_null_allowed>true</is_null_allowed>
  192. </field>
  193. <field id="knownerrors_list" xsi:type="AttributeLinkedSet">
  194. <linked_class>KnownError</linked_class>
  195. <ext_key_to_me>problem_id</ext_key_to_me>
  196. <count_min>0</count_min>
  197. <count_max>0</count_max>
  198. </field>
  199. </fields>
  200. <lifecycle>
  201. <attribute>status</attribute>
  202. <stimuli>
  203. <stimulus id="ev_assign" xsi:type="StimulusUserAction"/>
  204. <stimulus id="ev_reassign" xsi:type="StimulusUserAction"/>
  205. <stimulus id="ev_resolve" xsi:type="StimulusUserAction"/>
  206. <stimulus id="ev_close" xsi:type="StimulusUserAction"/>
  207. </stimuli>
  208. <states>
  209. <state id="new">
  210. <flags>
  211. <attribute id="ref">
  212. <read_only/>
  213. </attribute>
  214. <attribute id="description">
  215. <must_prompt/>
  216. </attribute>
  217. <attribute id="ticket_log">
  218. <hidden/>
  219. </attribute>
  220. <attribute id="start_date">
  221. <read_only/>
  222. </attribute>
  223. <attribute id="org_id">
  224. <must_prompt/>
  225. </attribute>
  226. <attribute id="service_id">
  227. <must_prompt/>
  228. </attribute>
  229. <attribute id="servicesubcategory_id">
  230. <must_prompt/>
  231. </attribute>
  232. <attribute id="product">
  233. <must_prompt/>
  234. </attribute>
  235. <attribute id="impact">
  236. <must_prompt/>
  237. </attribute>
  238. <attribute id="urgency">
  239. <must_prompt/>
  240. </attribute>
  241. <attribute id="priority">
  242. <read_only/>
  243. </attribute>
  244. <attribute id="workgroup_id">
  245. <must_prompt/>
  246. </attribute>
  247. <attribute id="agent_id">
  248. <hidden/>
  249. </attribute>
  250. <attribute id="agent_email">
  251. <hidden/>
  252. </attribute>
  253. <attribute id="related_change_id">
  254. <hidden/>
  255. </attribute>
  256. <attribute id="close_date">
  257. <hidden/>
  258. </attribute>
  259. <attribute id="last_update">
  260. <read_only/>
  261. </attribute>
  262. <attribute id="assignment_date">
  263. <hidden/>
  264. </attribute>
  265. <attribute id="resolution_date">
  266. <hidden/>
  267. </attribute>
  268. </flags>
  269. <transitions>
  270. <transition id="ev_assign">
  271. <stimulus>ev_assign</stimulus>
  272. <target>assigned</target>
  273. <actions>
  274. <action>
  275. <verb>SetAssignedDate</verb>
  276. </action>
  277. </actions>
  278. </transition>
  279. </transitions>
  280. </state>
  281. <state id="assigned">
  282. <flags>
  283. <attribute id="ref">
  284. <read_only/>
  285. </attribute>
  286. <attribute id="title">
  287. <read_only/>
  288. </attribute>
  289. <attribute id="description">
  290. <read_only/>
  291. </attribute>
  292. <attribute id="start_date">
  293. <read_only/>
  294. </attribute>
  295. <attribute id="org_id">
  296. <read_only/>
  297. </attribute>
  298. <attribute id="priority">
  299. <read_only/>
  300. </attribute>
  301. <attribute id="workgroup_id">
  302. <mandatory/>
  303. <must_prompt/>
  304. </attribute>
  305. <attribute id="agent_id">
  306. <mandatory/>
  307. <must_prompt/>
  308. </attribute>
  309. <attribute id="agent_email">
  310. <read_only/>
  311. </attribute>
  312. <attribute id="close_date">
  313. <hidden/>
  314. </attribute>
  315. <attribute id="last_update">
  316. <read_only/>
  317. </attribute>
  318. <attribute id="assignment_date">
  319. <read_only/>
  320. </attribute>
  321. <attribute id="resolution_date">
  322. <hidden/>
  323. </attribute>
  324. </flags>
  325. <transitions>
  326. <transition id="ev_reassign">
  327. <stimulus>ev_reassign</stimulus>
  328. <target>assigned</target>
  329. <actions/>
  330. </transition>
  331. <transition id="ev_resolve">
  332. <stimulus>ev_resolve</stimulus>
  333. <target>resolved</target>
  334. <actions>
  335. <action>
  336. <verb>SetResolveDate</verb>
  337. </action>
  338. </actions>
  339. </transition>
  340. </transitions>
  341. </state>
  342. <state id="resolved">
  343. <flags>
  344. <attribute id="ref">
  345. <read_only/>
  346. </attribute>
  347. <attribute id="title">
  348. <read_only/>
  349. </attribute>
  350. <attribute id="description">
  351. <read_only/>
  352. </attribute>
  353. <attribute id="start_date">
  354. <read_only/>
  355. </attribute>
  356. <attribute id="org_id">
  357. <read_only/>
  358. </attribute>
  359. <attribute id="service_id">
  360. <read_only/>
  361. </attribute>
  362. <attribute id="servicesubcategory_id">
  363. <read_only/>
  364. </attribute>
  365. <attribute id="product">
  366. <read_only/>
  367. </attribute>
  368. <attribute id="impact">
  369. <read_only/>
  370. </attribute>
  371. <attribute id="urgency">
  372. <read_only/>
  373. </attribute>
  374. <attribute id="priority">
  375. <read_only/>
  376. </attribute>
  377. <attribute id="workgroup_id">
  378. <read_only/>
  379. </attribute>
  380. <attribute id="agent_id">
  381. <read_only/>
  382. </attribute>
  383. <attribute id="agent_email">
  384. <read_only/>
  385. </attribute>
  386. <attribute id="close_date">
  387. <hidden/>
  388. </attribute>
  389. <attribute id="last_update">
  390. <read_only/>
  391. </attribute>
  392. <attribute id="assignment_date">
  393. <read_only/>
  394. </attribute>
  395. <attribute id="resolution_date">
  396. <hidden/>
  397. </attribute>
  398. </flags>
  399. <transitions>
  400. <transition id="ev_reassign">
  401. <stimulus>ev_reassign</stimulus>
  402. <target>assigned</target>
  403. <actions/>
  404. </transition>
  405. <transition id="ev_close">
  406. <stimulus>ev_close</stimulus>
  407. <target>closed</target>
  408. <actions>
  409. <action>
  410. <verb>SetClosureDate</verb>
  411. </action>
  412. </actions>
  413. </transition>
  414. </transitions>
  415. </state>
  416. <state id="closed">
  417. <flags>
  418. <attribute id="ref">
  419. <read_only/>
  420. </attribute>
  421. <attribute id="title">
  422. <read_only/>
  423. </attribute>
  424. <attribute id="description">
  425. <read_only/>
  426. </attribute>
  427. <attribute id="ticket_log">
  428. <read_only/>
  429. </attribute>
  430. <attribute id="start_date">
  431. <read_only/>
  432. </attribute>
  433. <attribute id="org_id">
  434. <read_only/>
  435. </attribute>
  436. <attribute id="service_id">
  437. <read_only/>
  438. </attribute>
  439. <attribute id="servicesubcategory_id">
  440. <read_only/>
  441. </attribute>
  442. <attribute id="product">
  443. <read_only/>
  444. </attribute>
  445. <attribute id="impact">
  446. <read_only/>
  447. </attribute>
  448. <attribute id="urgency">
  449. <read_only/>
  450. </attribute>
  451. <attribute id="priority">
  452. <read_only/>
  453. </attribute>
  454. <attribute id="workgroup_id">
  455. <read_only/>
  456. </attribute>
  457. <attribute id="agent_id">
  458. <read_only/>
  459. </attribute>
  460. <attribute id="agent_email">
  461. <read_only/>
  462. </attribute>
  463. <attribute id="close_date">
  464. <read_only/>
  465. </attribute>
  466. <attribute id="last_update">
  467. <read_only/>
  468. </attribute>
  469. <attribute id="assignment_date">
  470. <read_only/>
  471. </attribute>
  472. <attribute id="resolution_date">
  473. <hidden/>
  474. </attribute>
  475. </flags>
  476. <transitions/>
  477. </state>
  478. </states>
  479. </lifecycle>
  480. <methods>
  481. <method id="SetAssignedDate">
  482. <static>false</static>
  483. <access>public</access>
  484. <type>LifecycleAction</type>
  485. <code><![CDATA[ public function SetAssignedDate($sStimulusCode)
  486. {
  487. $this->Set('assignment_date', time());
  488. return true;
  489. }]]></code>
  490. </method>
  491. <method id="SetResolveDate">
  492. <static>false</static>
  493. <access>public</access>
  494. <type>LifecycleAction</type>
  495. <code><![CDATA[ public function SetResolveDate($sStimulusCode)
  496. {
  497. $this->Set('resolution_date', time());
  498. return true;
  499. }]]></code>
  500. </method>
  501. <method id="SetClosureDate">
  502. <static>false</static>
  503. <access>public</access>
  504. <type>LifecycleAction</type>
  505. <code><![CDATA[ public function SetClosureDate($sStimulusCode)
  506. {
  507. $this->Set('close_date', time());
  508. return true;
  509. }]]></code>
  510. </method>
  511. <method id="ComputePriority">
  512. <comment>/** Compute the priority of the ticket based on its impact and urgency
  513. * @return integer The priority of the ticket 1(high) .. 3(low)
  514. */</comment>
  515. <static>false</static>
  516. <access>public</access>
  517. <type>LifecycleAction</type>
  518. <code><![CDATA[ public function ComputePriority()
  519. {
  520. // priority[impact][urgency]
  521. $aPriorities = array(
  522. // single person
  523. 1 => array(
  524. 1 => 1,
  525. 2 => 1,
  526. 3 => 2,
  527. ),
  528. // a group
  529. 2 => array(
  530. 1 => 1,
  531. 2 => 2,
  532. 3 => 3,
  533. ),
  534. // a departement!
  535. 3 => array(
  536. 1 => 2,
  537. 2 => 3,
  538. 3 => 3,
  539. ),
  540. );
  541. $iPriority = 1;
  542. if (isset($aPriorities[(int)$this->Get('impact')][(int)$this->Get('urgency')]))
  543. {
  544. $iPriority = $aPriorities[(int)$this->Get('impact')][(int)$this->Get('urgency')];
  545. }
  546. return $iPriority;
  547. }]]></code>
  548. </method>
  549. <method id="ComputeValues">
  550. <static>false</static>
  551. <access>public</access>
  552. <type>Overload-DBObject</type>
  553. <code><![CDATA[ public function ComputeValues()
  554. {
  555. // Compute the priority of the ticket
  556. $this->Set('priority', $this->ComputePriority());
  557. $sCurrRef = $this->Get('ref');
  558. if (strlen($sCurrRef) == 0)
  559. {
  560. $iKey = $this->GetKey();
  561. if ($iKey < 0)
  562. {
  563. // Object not yet in the Database
  564. $iKey = MetaModel::GetNextKey(get_class($this));
  565. }
  566. $sName = sprintf('P-%06d', $iKey);
  567. $this->Set('ref', $sName);
  568. }
  569. }]]></code>
  570. </method>
  571. </methods>
  572. <presentation>
  573. <details>
  574. <items>
  575. <item id="document_list">
  576. <rank>10</rank>
  577. </item>
  578. <item id="ci_list">
  579. <rank>20</rank>
  580. </item>
  581. <item id="contact_list">
  582. <rank>30</rank>
  583. </item>
  584. <item id="incident_list">
  585. <rank>40</rank>
  586. </item>
  587. <item id="col:col1">
  588. <rank>50</rank>
  589. <items>
  590. <item id="fieldset:Ticket:baseinfo">
  591. <rank>10</rank>
  592. <items>
  593. <item id="ref">
  594. <rank>10</rank>
  595. </item>
  596. <item id="title">
  597. <rank>20</rank>
  598. </item>
  599. <item id="org_id">
  600. <rank>30</rank>
  601. </item>
  602. <item id="status">
  603. <rank>40</rank>
  604. </item>
  605. <item id="priority">
  606. <rank>50</rank>
  607. </item>
  608. <item id="service_id">
  609. <rank>60</rank>
  610. </item>
  611. <item id="servicesubcategory_id">
  612. <rank>70</rank>
  613. </item>
  614. <item id="product">
  615. <rank>80</rank>
  616. </item>
  617. </items>
  618. </item>
  619. <item id="fieldset:Ticket:moreinfo">
  620. <rank>20</rank>
  621. <items>
  622. <item id="impact">
  623. <rank>10</rank>
  624. </item>
  625. <item id="urgency">
  626. <rank>20</rank>
  627. </item>
  628. <item id="description">
  629. <rank>30</rank>
  630. </item>
  631. </items>
  632. </item>
  633. </items>
  634. </item>
  635. <item id="col:col2">
  636. <rank>60</rank>
  637. <items>
  638. <item id="fieldset:Ticket:date">
  639. <rank>10</rank>
  640. <items>
  641. <item id="start_date">
  642. <rank>10</rank>
  643. </item>
  644. <item id="last_update">
  645. <rank>20</rank>
  646. </item>
  647. <item id="assignment_date">
  648. <rank>30</rank>
  649. </item>
  650. <item id="close_date">
  651. <rank>40</rank>
  652. </item>
  653. </items>
  654. </item>
  655. <item id="fieldset:Ticket:contact">
  656. <rank>20</rank>
  657. <items>
  658. <item id="workgroup_id">
  659. <rank>10</rank>
  660. </item>
  661. <item id="agent_id">
  662. <rank>20</rank>
  663. </item>
  664. </items>
  665. </item>
  666. <item id="fieldset:Ticket:relation">
  667. <rank>30</rank>
  668. <items>
  669. <item id="related_change_id">
  670. <rank>10</rank>
  671. </item>
  672. </items>
  673. </item>
  674. </items>
  675. </item>
  676. </items>
  677. </details>
  678. <search>
  679. <items>
  680. <item id="ref">
  681. <rank>10</rank>
  682. </item>
  683. <item id="title">
  684. <rank>20</rank>
  685. </item>
  686. <item id="org_id">
  687. <rank>30</rank>
  688. </item>
  689. <item id="start_date">
  690. <rank>40</rank>
  691. </item>
  692. <item id="status">
  693. <rank>50</rank>
  694. </item>
  695. <item id="service_id">
  696. <rank>60</rank>
  697. </item>
  698. <item id="servicesubcategory_id">
  699. <rank>70</rank>
  700. </item>
  701. <item id="product">
  702. <rank>80</rank>
  703. </item>
  704. <item id="impact">
  705. <rank>90</rank>
  706. </item>
  707. <item id="urgency">
  708. <rank>100</rank>
  709. </item>
  710. <item id="priority">
  711. <rank>110</rank>
  712. </item>
  713. <item id="workgroup_id">
  714. <rank>120</rank>
  715. </item>
  716. <item id="agent_id">
  717. <rank>130</rank>
  718. </item>
  719. <item id="agent_email">
  720. <rank>140</rank>
  721. </item>
  722. <item id="close_date">
  723. <rank>150</rank>
  724. </item>
  725. </items>
  726. </search>
  727. <list>
  728. <items>
  729. <item id="title">
  730. <rank>10</rank>
  731. </item>
  732. <item id="org_id">
  733. <rank>20</rank>
  734. </item>
  735. <item id="start_date">
  736. <rank>30</rank>
  737. </item>
  738. <item id="status">
  739. <rank>40</rank>
  740. </item>
  741. <item id="service_id">
  742. <rank>50</rank>
  743. </item>
  744. <item id="priority">
  745. <rank>60</rank>
  746. </item>
  747. </items>
  748. </list>
  749. </presentation>
  750. </class>
  751. </classes>
  752. <menus>
  753. <menu id="Problem:Overview" xsi:type="DashboardMenuNode" _delta="define">
  754. <rank>0</rank>
  755. <parent>ProblemManagement</parent>
  756. <definition>
  757. <layout>DashboardLayoutTwoCols</layout>
  758. <title/>
  759. <cells>
  760. <cell id="0">
  761. <rank>0</rank>
  762. <dashlets>
  763. <dashlet id="1" xsi:type="DashletGroupByBars">
  764. <rank>0</rank>
  765. <title>UI-ProblemManagementOverview-ProblemByService</title>
  766. <query>SELECT Problem</query>
  767. <group_by>service_id</group_by>
  768. <style>bars</style>
  769. </dashlet>
  770. </dashlets>
  771. </cell>
  772. <cell id="1">
  773. <rank>1</rank>
  774. <dashlets>
  775. <dashlet id="2" xsi:type="DashletGroupByPie">
  776. <rank>0</rank>
  777. <title>UI-ProblemManagementOverview-ProblemByPriority</title>
  778. <query>SELECT Problem</query>
  779. <group_by>priority</group_by>
  780. <style>pie</style>
  781. </dashlet>
  782. </dashlets>
  783. </cell>
  784. <cell id="2">
  785. <rank>2</rank>
  786. <dashlets>
  787. <dashlet id="3" xsi:type="DashletObjectList">
  788. <rank>0</rank>
  789. <title>UI-ProblemManagementOverview-ProblemUnassigned</title>
  790. <query>SELECT Problem WHERE status IN ("new")</query>
  791. <menu>true</menu>
  792. </dashlet>
  793. </dashlets>
  794. </cell>
  795. </cells>
  796. </definition>
  797. </menu>
  798. <menu id="NewProblem" xsi:type="NewObjectMenuNode" _delta="define">
  799. <rank>1</rank>
  800. <parent>ProblemManagement</parent>
  801. <class>Problem</class>
  802. </menu>
  803. <menu id="SearchProblems" xsi:type="SearchMenuNode" _delta="define">
  804. <rank>2</rank>
  805. <parent>ProblemManagement</parent>
  806. <class>Problem</class>
  807. </menu>
  808. <menu id="Problem:MyProblems" xsi:type="OQLMenuNode" _delta="define">
  809. <rank>1</rank>
  810. <parent>Problem:Shortcuts</parent>
  811. <oql><![CDATA[SELECT Problem WHERE agent_id = :current_contact_id AND status NOT IN ("closed", "resolved")]]></oql>
  812. <do_search/>
  813. </menu>
  814. <menu id="Problem:OpenProblems" xsi:type="OQLMenuNode" _delta="define">
  815. <rank>2</rank>
  816. <parent>Problem:Shortcuts</parent>
  817. <oql><![CDATA[SELECT Problem WHERE status IN ("new", "assigned", "resolved")]]></oql>
  818. <do_search/>
  819. </menu>
  820. </menus>
  821. </itop_design>