datamodel.itop-problem-mgmt.xml 25 KB

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