datamodel.itop-change-mgmt.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  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="Change" _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,changemgmt</category>
  14. <abstract>false</abstract>
  15. <key_type>autoincrement</key_type>
  16. <db_table>ticket_change</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/change.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="planned">planned</value>
  43. <value id="approved">approved</value>
  44. <value id="closed">closed</value>
  45. <value id="rejected">rejected</value>
  46. </values>
  47. <sql>status</sql>
  48. <default_value>new</default_value>
  49. <is_null_allowed>true</is_null_allowed>
  50. </field>
  51. <field id="category" xsi:type="AttributeEnum">
  52. <values>
  53. <value id="hardware">hardware</value>
  54. <value id="software">software</value>
  55. <value id="system">system</value>
  56. <value id="network">network</value>
  57. <value id="application">application</value>
  58. <value id="other">other</value>
  59. </values>
  60. <sql>category</sql>
  61. <default_value>hardware</default_value>
  62. <is_null_allowed>true</is_null_allowed>
  63. </field>
  64. <field id="reject_reason" xsi:type="AttributeText">
  65. <sql>reject_reason</sql>
  66. <default_value/>
  67. <is_null_allowed>true</is_null_allowed>
  68. </field>
  69. <field id="changemanager_id" xsi:type="AttributeExternalKey">
  70. <sql>changemanager_id</sql>
  71. <target_class>Person</target_class>
  72. <is_null_allowed>true</is_null_allowed>
  73. <on_target_delete>DEL_MANUAL</on_target_delete>
  74. </field>
  75. <field id="changemanager_email" xsi:type="AttributeExternalField">
  76. <extkey_attcode>changemanager_id</extkey_attcode>
  77. <target_attcode>email</target_attcode>
  78. </field>
  79. <field id="parent_id" xsi:type="AttributeExternalKey">
  80. <filter><![CDATA[SELECT Change WHERE id != :this->id]]></filter>
  81. <sql>parent_id</sql>
  82. <target_class>Change</target_class>
  83. <is_null_allowed>true</is_null_allowed>
  84. <on_target_delete>DEL_MANUAL</on_target_delete>
  85. <jointype/>
  86. </field>
  87. <field id="parent_name" xsi:type="AttributeExternalField">
  88. <extkey_attcode>parent_id</extkey_attcode>
  89. <target_attcode>ref</target_attcode>
  90. <is_null_allowed>true</is_null_allowed>
  91. </field>
  92. <field id="creation_date" xsi:type="AttributeDateTime">
  93. <sql>creation_date</sql>
  94. <default_value/>
  95. <is_null_allowed>true</is_null_allowed>
  96. </field>
  97. <field id="approval_date" xsi:type="AttributeDateTime">
  98. <sql>approval_date</sql>
  99. <default_value/>
  100. <is_null_allowed>true</is_null_allowed>
  101. </field>
  102. <field id="fallback_plan" xsi:type="AttributeText">
  103. <sql>fallback_plan</sql>
  104. <default_value/>
  105. <is_null_allowed>true</is_null_allowed>
  106. </field>
  107. <field id="outage" xsi:type="AttributeEnum">
  108. <values>
  109. <value id="yes">yes</value>
  110. <value id="no">no</value>
  111. </values>
  112. <sql>outage</sql>
  113. <default_value>no</default_value>
  114. <is_null_allowed>false</is_null_allowed>
  115. </field>
  116. <field id="related_request_list" xsi:type="AttributeLinkedSet">
  117. <linked_class>UserRequest</linked_class>
  118. <ext_key_to_me>parent_change_id</ext_key_to_me>
  119. <edit_mode>add_remove</edit_mode>
  120. <count_min>0</count_min>
  121. <count_max>0</count_max>
  122. </field>
  123. <field id="related_incident_list" xsi:type="AttributeLinkedSet">
  124. <linked_class>Incident</linked_class>
  125. <ext_key_to_me>parent_change_id</ext_key_to_me>
  126. <edit_mode>add_remove</edit_mode>
  127. <count_min>0</count_min>
  128. <count_max>0</count_max>
  129. </field>
  130. <field id="related_problems_list" xsi:type="AttributeLinkedSet">
  131. <linked_class>Problem</linked_class>
  132. <ext_key_to_me>related_change_id</ext_key_to_me>
  133. <edit_mode>add_remove</edit_mode>
  134. <count_min>0</count_min>
  135. <count_max>0</count_max>
  136. </field>
  137. <field id="child_changes_list" xsi:type="AttributeLinkedSet">
  138. <linked_class>Change</linked_class>
  139. <ext_key_to_me>parent_id</ext_key_to_me>
  140. <edit_mode>add_remove</edit_mode>
  141. <filter><![CDATA[SELECT Change WHERE id != :this->id]]></filter>
  142. <count_min>0</count_min>
  143. <count_max>0</count_max>
  144. </field>
  145. </fields>
  146. <lifecycle>
  147. <highlight_scale>
  148. <item id="approved">
  149. <rank>1</rank>
  150. <color>HIGHLIGHT_CLASS_NONE</color>
  151. <icon>images/change-approved.png</icon>
  152. </item>
  153. <item id="rejected">
  154. <rank>2</rank>
  155. <color>HIGHLIGHT_CLASS_NONE</color>
  156. <icon>images/change-rejected.png</icon>
  157. </item>
  158. <item id="closed">
  159. <rank>3</rank>
  160. <color>HIGHLIGHT_CLASS_NONE</color>
  161. <icon>images/change-closed.png</icon>
  162. </item>
  163. </highlight_scale>
  164. <attribute>status</attribute>
  165. <stimuli>
  166. <stimulus id="ev_assign" xsi:type="StimulusUserAction"/>
  167. <stimulus id="ev_plan" xsi:type="StimulusUserAction"/>
  168. <stimulus id="ev_reject" xsi:type="StimulusUserAction"/>
  169. <stimulus id="ev_reopen" xsi:type="StimulusUserAction"/>
  170. <stimulus id="ev_approve" xsi:type="StimulusUserAction"/>
  171. <stimulus id="ev_finish" xsi:type="StimulusUserAction"/>
  172. </stimuli>
  173. <states>
  174. <state id="new">
  175. <flags>
  176. <attribute id="ref">
  177. <read_only/>
  178. </attribute>
  179. <attribute id="org_id">
  180. <mandatory/>
  181. </attribute>
  182. <attribute id="title">
  183. <mandatory/>
  184. </attribute>
  185. <attribute id="description">
  186. <mandatory/>
  187. </attribute>
  188. <attribute id="last_update">
  189. <read_only/>
  190. </attribute>
  191. <attribute id="close_date">
  192. <hidden/>
  193. </attribute>
  194. <attribute id="reject_reason">
  195. <hidden/>
  196. </attribute>
  197. <attribute id="creation_date">
  198. <read_only/>
  199. </attribute>
  200. <attribute id="approval_date">
  201. <hidden/>
  202. </attribute>
  203. <attribute id="caller_id">
  204. <mandatory/>
  205. </attribute>
  206. <attribute id="team_id">
  207. <hidden/>
  208. </attribute>
  209. <attribute id="agent_id">
  210. <hidden/>
  211. </attribute>
  212. <attribute id="changemanager_id">
  213. <hidden/>
  214. </attribute>
  215. <attribute id="outage">
  216. <hidden/>
  217. </attribute>
  218. </flags>
  219. <transitions>
  220. <transition id="ev_assign">
  221. <target>assigned</target>
  222. <actions/>
  223. </transition>
  224. </transitions>
  225. </state>
  226. <state id="assigned">
  227. <inherit_flags_from>new</inherit_flags_from>
  228. <flags>
  229. <attribute id="team_id">
  230. <mandatory/>
  231. <must_prompt/>
  232. </attribute>
  233. <attribute id="agent_id">
  234. <mandatory/>
  235. <must_prompt/>
  236. </attribute>
  237. <attribute id="changemanager_id">
  238. <mandatory/>
  239. <must_prompt/>
  240. </attribute>
  241. <attribute id="caller_id"/>
  242. </flags>
  243. <transitions>
  244. <transition id="ev_plan">
  245. <target>planned</target>
  246. <actions/>
  247. </transition>
  248. </transitions>
  249. </state>
  250. <state id="planned">
  251. <inherit_flags_from>assigned</inherit_flags_from>
  252. <flags>
  253. <attribute id="start_date">
  254. <mandatory/>
  255. <must_prompt/>
  256. </attribute>
  257. <attribute id="end_date">
  258. <mandatory/>
  259. <must_prompt/>
  260. </attribute>
  261. <attribute id="fallback_plan">
  262. <mandatory/>
  263. <must_prompt/>
  264. </attribute>
  265. <attribute id="caller_id">
  266. <mandatory/>
  267. </attribute>
  268. <attribute id="outage">
  269. <mandatory/>
  270. <must_prompt/>
  271. </attribute>
  272. </flags>
  273. <transitions>
  274. <transition id="ev_reject">
  275. <target>rejected</target>
  276. <actions/>
  277. </transition>
  278. <transition id="ev_approve">
  279. <target>approved</target>
  280. <actions>
  281. <action>
  282. <verb>SetCurrentDate</verb>
  283. <params>
  284. <param xsi:type="attcode">approval_date</param>
  285. </params>
  286. </action>
  287. <action>
  288. <verb>Reset</verb>
  289. <params>
  290. <param xsi:type="attcode">reject_reason</param>
  291. </params>
  292. </action>
  293. </actions>
  294. </transition>
  295. </transitions>
  296. </state>
  297. <state id="rejected">
  298. <highlight>
  299. <code>rejected</code>
  300. </highlight>
  301. <inherit_flags_from>assigned</inherit_flags_from>
  302. <flags>
  303. <attribute id="start_date">
  304. <read_only/>
  305. </attribute>
  306. <attribute id="end_date">
  307. <read_only/>
  308. </attribute>
  309. <attribute id="private_log">
  310. <read_only/>
  311. <read_only/>
  312. </attribute>
  313. <attribute id="caller_id">
  314. <read_only/>
  315. </attribute>
  316. <attribute id="fallback_plan">
  317. <read_only/>
  318. </attribute>
  319. <attribute id="category">
  320. <read_only/>
  321. </attribute>
  322. <attribute id="parent_id">
  323. <read_only/>
  324. </attribute>
  325. <attribute id="org_id">
  326. <read_only/>
  327. </attribute>
  328. <attribute id="title">
  329. <read_only/>
  330. </attribute>
  331. <attribute id="description">
  332. <read_only/>
  333. </attribute>
  334. <attribute id="reject_reason">
  335. <mandatory/>
  336. <must_prompt/>
  337. </attribute>
  338. <attribute id="approval_date">
  339. <read_only/>
  340. </attribute>
  341. <attribute id="team_id">
  342. <read_only/>
  343. </attribute>
  344. <attribute id="agent_id">
  345. <read_only/>
  346. </attribute>
  347. <attribute id="changemanager_id">
  348. <read_only/>
  349. </attribute>
  350. <attribute id="outage">
  351. <read_only/>
  352. </attribute>
  353. </flags>
  354. <transitions>
  355. <transition id="ev_reopen">
  356. <target>assigned</target>
  357. <actions/>
  358. </transition>
  359. </transitions>
  360. </state>
  361. <state id="approved">
  362. <highlight>
  363. <code>approved</code>
  364. </highlight>
  365. <inherit_flags_from>planned</inherit_flags_from>
  366. <flags>
  367. <attribute id="private_log"/>
  368. <attribute id="category"/>
  369. <attribute id="parent_id"/>
  370. <attribute id="org_id">
  371. <read_only/>
  372. </attribute>
  373. <attribute id="title">
  374. <read_only/>
  375. </attribute>
  376. <attribute id="description">
  377. <read_only/>
  378. </attribute>
  379. <attribute id="start_date">
  380. <read_only/>
  381. </attribute>
  382. <attribute id="end_date">
  383. <read_only/>
  384. </attribute>
  385. <attribute id="reject_reason">
  386. <read_only/>
  387. </attribute>
  388. <attribute id="creation_date">
  389. <hidden/>
  390. </attribute>
  391. <attribute id="approval_date">
  392. <read_only/>
  393. </attribute>
  394. <attribute id="caller_id">
  395. <read_only/>
  396. </attribute>
  397. <attribute id="team_id">
  398. <read_only/>
  399. </attribute>
  400. <attribute id="agent_id">
  401. <read_only/>
  402. </attribute>
  403. <attribute id="changemanager_id">
  404. <read_only/>
  405. </attribute>
  406. <attribute id="fallback_plan"/>
  407. <attribute id="outage">
  408. <read_only/>
  409. </attribute>
  410. </flags>
  411. <transitions>
  412. <transition id="ev_finish">
  413. <target>closed</target>
  414. <actions>
  415. <action>
  416. <verb>SetCurrentDate</verb>
  417. <params>
  418. <param xsi:type="attcode">close_date</param>
  419. </params>
  420. </action>
  421. </actions>
  422. </transition>
  423. </transitions>
  424. </state>
  425. <state id="closed">
  426. <highlight>
  427. <code>closed</code>
  428. </highlight>
  429. <inherit_flags_from>approved</inherit_flags_from>
  430. <flags>
  431. <attribute id="close_date">
  432. <read_only/>
  433. </attribute>
  434. <attribute id="creation_date">
  435. <read_only/>
  436. </attribute>
  437. <attribute id="private_log">
  438. <read_only/>
  439. </attribute>
  440. <attribute id="fallback_plan">
  441. <read_only/>
  442. </attribute>
  443. <attribute id="category">
  444. <read_only/>
  445. </attribute>
  446. <attribute id="parent_id">
  447. <read_only/>
  448. </attribute>
  449. </flags>
  450. <transitions/>
  451. </state>
  452. </states>
  453. </lifecycle>
  454. <methods>
  455. <method id="SetApprovalDate">
  456. <comment><![CDATA[/**
  457. * To be deprecated: use SetCurrentDate() instead
  458. * @return void
  459. */]]></comment>
  460. <static>false</static>
  461. <access>public</access>
  462. <type>LifecycleAction</type>
  463. <code><![CDATA[ public function SetApprovalDate($sStimulusCode)
  464. {
  465. $this->Set('approval_date', time());
  466. return true;
  467. }]]></code>
  468. </method>
  469. <method id="ResetRejectReason">
  470. <comment><![CDATA[/**
  471. * To be deprecated: use SetCurrentDate() instead
  472. * @return void
  473. */]]></comment>
  474. <static>false</static>
  475. <access>public</access>
  476. <type>LifecycleAction</type>
  477. <code><![CDATA[ public function ResetRejectReason($sStimulusCode)
  478. {
  479. $this->Set('reject_reason', '');
  480. return true;
  481. }]]></code>
  482. </method>
  483. <method id="SetClosureDate">
  484. <comment><![CDATA[/**
  485. * To be deprecated: use SetCurrentDate() instead
  486. * @return void
  487. */]]></comment>
  488. <static>false</static>
  489. <access>public</access>
  490. <type>LifecycleAction</type>
  491. <code><![CDATA[ public function SetClosureDate($sStimulusCode)
  492. {
  493. $this->Set('close_date', time());
  494. return true;
  495. }]]></code>
  496. </method>
  497. <method id="OnInsert">
  498. <static>false</static>
  499. <access>protected</access>
  500. <type>Overload-DBObject</type>
  501. <code><![CDATA[
  502. protected function OnInsert()
  503. {
  504. parent::OnInsert();
  505. $this->UpdateImpactedItems();
  506. $this->Set('creation_date', time());
  507. $this->Set('last_update', time());
  508. }]]></code>
  509. </method>
  510. <method id="OnUpdate">
  511. <static>false</static>
  512. <access>protected</access>
  513. <type>Overload-DBObject</type>
  514. <code><![CDATA[
  515. protected function OnUpdate()
  516. {
  517. parent::OnUpdate();
  518. $aChanges = $this->ListChanges();
  519. if (array_key_exists('functionalcis_list', $aChanges))
  520. {
  521. $this->UpdateImpactedItems();
  522. }
  523. $this->Set('last_update', time());
  524. }]]></code>
  525. </method>
  526. </methods>
  527. <presentation>
  528. <details>
  529. <items>
  530. <item id="functionalcis_list">
  531. <rank>10</rank>
  532. </item>
  533. <item id="contacts_list">
  534. <rank>20</rank>
  535. </item>
  536. <item id="workorders_list">
  537. <rank>30</rank>
  538. </item>
  539. <item id="related_request_list">
  540. <rank>40</rank>
  541. </item>
  542. <item id="related_incident_list">
  543. <rank>50</rank>
  544. </item>
  545. <item id="related_problems_list">
  546. <rank>60</rank>
  547. </item>
  548. <item id="child_changes_list">
  549. <rank>70</rank>
  550. </item>
  551. <item id="col:col1">
  552. <rank>80</rank>
  553. <items>
  554. <item id="fieldset:Ticket:baseinfo">
  555. <rank>10</rank>
  556. <items>
  557. <item id="ref">
  558. <rank>10</rank>
  559. </item>
  560. <item id="org_id">
  561. <rank>20</rank>
  562. </item>
  563. <item id="status">
  564. <rank>30</rank>
  565. </item>
  566. <item id="title">
  567. <rank>40</rank>
  568. </item>
  569. <item id="description">
  570. <rank>50</rank>
  571. </item>
  572. </items>
  573. </item>
  574. <item id="fieldset:Ticket:contact">
  575. <rank>20</rank>
  576. <items>
  577. <item id="caller_id">
  578. <rank>10</rank>
  579. </item>
  580. <item id="team_id">
  581. <rank>20</rank>
  582. </item>
  583. <item id="agent_id">
  584. <rank>30</rank>
  585. </item>
  586. <item id="changemanager_id">
  587. <rank>40</rank>
  588. </item>
  589. </items>
  590. </item>
  591. </items>
  592. </item>
  593. <item id="col:col2">
  594. <rank>90</rank>
  595. <items>
  596. <item id="fieldset:Ticket:resolution">
  597. <rank>10</rank>
  598. <items>
  599. <item id="category">
  600. <rank>10</rank>
  601. </item>
  602. <item id="outage">
  603. <rank>15.1</rank>
  604. </item>
  605. <item id="reject_reason">
  606. <rank>20</rank>
  607. </item>
  608. <item id="fallback_plan">
  609. <rank>30</rank>
  610. </item>
  611. </items>
  612. </item>
  613. <item id="fieldset:Ticket:relation">
  614. <rank>20</rank>
  615. <items>
  616. <item id="parent_id">
  617. <rank>10</rank>
  618. </item>
  619. </items>
  620. </item>
  621. </items>
  622. </item>
  623. <item id="col:col3">
  624. <rank>100</rank>
  625. <items>
  626. <item id="fieldset:Ticket:date">
  627. <rank>10</rank>
  628. <items>
  629. <item id="creation_date">
  630. <rank>10</rank>
  631. </item>
  632. <item id="start_date">
  633. <rank>20</rank>
  634. </item>
  635. <item id="end_date">
  636. <rank>30</rank>
  637. </item>
  638. <item id="last_update">
  639. <rank>40</rank>
  640. </item>
  641. <item id="approval_date">
  642. <rank>50</rank>
  643. </item>
  644. <item id="close_date">
  645. <rank>60</rank>
  646. </item>
  647. </items>
  648. </item>
  649. </items>
  650. </item>
  651. </items>
  652. </details>
  653. <search>
  654. <items>
  655. <item id="ref">
  656. <rank>10</rank>
  657. </item>
  658. <item id="title">
  659. <rank>20</rank>
  660. </item>
  661. <item id="org_id">
  662. <rank>30</rank>
  663. </item>
  664. <item id="status">
  665. <rank>40</rank>
  666. </item>
  667. <item id="start_date">
  668. <rank>50</rank>
  669. </item>
  670. <item id="end_date">
  671. <rank>60</rank>
  672. </item>
  673. <item id="creation_date">
  674. <rank>70</rank>
  675. </item>
  676. <item id="last_update">
  677. <rank>80</rank>
  678. </item>
  679. <item id="close_date">
  680. <rank>90</rank>
  681. </item>
  682. <item id="team_id">
  683. <rank>100</rank>
  684. </item>
  685. <item id="agent_id">
  686. <rank>110</rank>
  687. </item>
  688. <item id="changemanager_id">
  689. <rank>120</rank>
  690. </item>
  691. </items>
  692. </search>
  693. <list>
  694. <items>
  695. <item id="title">
  696. <rank>10</rank>
  697. </item>
  698. <item id="org_id">
  699. <rank>20</rank>
  700. </item>
  701. <item id="start_date">
  702. <rank>30</rank>
  703. </item>
  704. <item id="end_date">
  705. <rank>40</rank>
  706. </item>
  707. <item id="status">
  708. <rank>50</rank>
  709. </item>
  710. <item id="category">
  711. <rank>60</rank>
  712. </item>
  713. <item id="agent_id">
  714. <rank>70</rank>
  715. </item>
  716. </items>
  717. </list>
  718. </presentation>
  719. </class>
  720. </classes>
  721. <menus>
  722. <menu id="ChangeManagement" xsi:type="MenuGroup" _delta="define">
  723. <rank>50</rank>
  724. </menu>
  725. <menu id="Change:Overview" xsi:type="DashboardMenuNode" _delta="define">
  726. <rank>0</rank>
  727. <parent>ChangeManagement</parent>
  728. <definition>
  729. <layout>DashboardLayoutTwoCols</layout>
  730. <title>UI:ChangeMgmtMenuOverview:Title</title>
  731. <cells>
  732. <cell id="0">
  733. <rank>0</rank>
  734. <dashlets>
  735. <dashlet id="1" xsi:type="DashletGroupByTable">
  736. <rank>0</rank>
  737. <title>UI-ChangeManagementOverview-ChangeByCategory-last-7-days</title>
  738. <query>SELECT Change WHERE creation_date &gt; DATE_SUB(NOW(), INTERVAL 7 DAY)</query>
  739. <group_by>category</group_by>
  740. <style>table</style>
  741. </dashlet>
  742. </dashlets>
  743. </cell>
  744. <cell id="1">
  745. <rank>1</rank>
  746. <dashlets>
  747. <dashlet id="2" xsi:type="DashletGroupByBars">
  748. <rank>0</rank>
  749. <title>UI-ChangeManagementOverview-Last-7-days</title>
  750. <query>SELECT Change WHERE creation_date &gt; DATE_SUB(NOW(), INTERVAL 7 DAY)</query>
  751. <group_by>start_date:day_of_month</group_by>
  752. <style>bars</style>
  753. </dashlet>
  754. </dashlets>
  755. </cell>
  756. <cell id="2">
  757. <rank>2</rank>
  758. <dashlets>
  759. <dashlet id="3" xsi:type="DashletGroupByTable">
  760. <rank>0</rank>
  761. <title>UI-ChangeManagementOverview-ChangeByDomain-last-7-days</title>
  762. <query>SELECT Change WHERE creation_date &gt; DATE_SUB(NOW(), INTERVAL 7 DAY)</query>
  763. <group_by>finalclass</group_by>
  764. <style>table</style>
  765. </dashlet>
  766. </dashlets>
  767. </cell>
  768. <cell id="3">
  769. <rank>3</rank>
  770. <dashlets>
  771. <dashlet id="4" xsi:type="DashletGroupByTable">
  772. <rank>0</rank>
  773. <title>UI-ChangeManagementOverview-ChangeByStatus-last-7-days</title>
  774. <query>SELECT Change WHERE creation_date &gt; DATE_SUB(NOW(), INTERVAL 7 DAY)</query>
  775. <group_by>status</group_by>
  776. <style>table</style>
  777. </dashlet>
  778. </dashlets>
  779. </cell>
  780. </cells>
  781. </definition>
  782. </menu>
  783. <menu id="NewChange" xsi:type="NewObjectMenuNode" _delta="define">
  784. <rank>1</rank>
  785. <parent>ChangeManagement</parent>
  786. <class>Change</class>
  787. </menu>
  788. <menu id="SearchChanges" xsi:type="SearchMenuNode" _delta="define">
  789. <rank>2</rank>
  790. <parent>ChangeManagement</parent>
  791. <class>Change</class>
  792. </menu>
  793. <menu id="Change:Shortcuts" xsi:type="TemplateMenuNode" _delta="define">
  794. <rank>3</rank>
  795. <parent>ChangeManagement</parent>
  796. <template_file/>
  797. </menu>
  798. <menu id="MyChanges" xsi:type="OQLMenuNode" _delta="define">
  799. <rank>1</rank>
  800. <parent>Change:Shortcuts</parent>
  801. <oql><![CDATA[SELECT Change WHERE agent_id = :current_contact_id AND status NOT IN ("closed")]]></oql>
  802. <do_search/>
  803. <auto_reload>fast</auto_reload>
  804. </menu>
  805. <menu id="Changes" xsi:type="OQLMenuNode" _delta="define">
  806. <rank>2</rank>
  807. <parent>Change:Shortcuts</parent>
  808. <oql><![CDATA[SELECT Change WHERE status != "closed"]]></oql>
  809. <do_search>1</do_search>
  810. <auto_reload>fast</auto_reload>
  811. </menu>
  812. <menu id="WaitingApproval" xsi:type="OQLMenuNode" _delta="define">
  813. <rank>3</rank>
  814. <parent>Change:Shortcuts</parent>
  815. <oql><![CDATA[SELECT Change WHERE status IN ("planned")]]></oql>
  816. <do_search/>
  817. <auto_reload>fast</auto_reload>
  818. </menu>
  819. </menus>
  820. </itop_design>