datamodel.itop-problem-mgmt.xml 25 KB

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