datamodel.itop-problem-mgmt.xml 26 KB

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