123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718 |
- <?xml version="1.0" encoding="UTF-8"?>
- <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <classes>
- <class name="UserRequest" category="bizmodel,searchable,requestmgmt" parent="ResponseTicket" abstract="false" key_type="autoincrement" db_table="ticket_request" db_key_field="id" db_final_class_field="">
- <properties>
- <comment><![CDATA[/**
- * Persistent classes for a CMDB
- *
- * @author Erwan Taloc <erwan.taloc@combodo.com>
- * @author Romain Quetiez <romain.quetiez@combodo.com>
- * @author Denis Flaven <denis.flaven@combodo.com>
- * @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
- */]]></comment>
- <naming format="%1$s">
- <attributes>
- <attribute name="ref"/>
- </attributes>
- </naming>
- <display_template></display_template>
- <icon>images/user-request.png</icon>
- <reconciliation>
- <attributes>
- <attribute name="ref"/>
- </attributes>
- </reconciliation>
- <order>
- <columns>
- <column name="ref" ascending="false"/>
- </columns>
- </order>
- </properties>
- <fields>
- <field name="request_type" xsi:type="AttributeEnum" sql="request_type" default_value="service request" is_null_allowed="false">
- <values>
- <value>service request</value>
- <value>issue</value>
- <value>information</value>
- </values>
- </field>
- <field name="freeze_reason" xsi:type="AttributeString" sql="freeze_reason" default_value="" is_null_allowed="true"/>
- </fields>
- <lifecycle attribute="status">
- <stimuli>
- <stimulus name="ev_assign" type="StimulusUserAction"/>
- <stimulus name="ev_reassign" type="StimulusUserAction"/>
- <stimulus name="ev_timeout" type="StimulusInternal"/>
- <stimulus name="ev_resolve" type="StimulusUserAction"/>
- <stimulus name="ev_close" type="StimulusUserAction"/>
- <stimulus name="ev_freeze" type="StimulusUserAction"/>
- </stimuli>
- <states>
- <state name="new">
- <flags>
- <attribute name="ref" read_only="1"/>
- <attribute name="title"/>
- <attribute name="description" must_change="1"/>
- <attribute name="ticket_log"/>
- <attribute name="start_date" read_only="1"/>
- <attribute name="document_list"/>
- <attribute name="ci_list"/>
- <attribute name="contact_list"/>
- <attribute name="incident_list"/>
- <attribute name="status"/>
- <attribute name="caller_id" mandatory="1"/>
- <attribute name="caller_email"/>
- <attribute name="org_id" must_change="1"/>
- <attribute name="org_name"/>
- <attribute name="service_id" must_change="1"/>
- <attribute name="service_name"/>
- <attribute name="servicesubcategory_id" must_change="1"/>
- <attribute name="servicesubcategory_name"/>
- <attribute name="product" must_prompt="1"/>
- <attribute name="impact" must_change="1"/>
- <attribute name="urgency" must_change="1"/>
- <attribute name="priority" read_only="1"/>
- <attribute name="workgroup_id" must_change="1"/>
- <attribute name="workgroup_name"/>
- <attribute name="agent_id"/>
- <attribute name="agent_name"/>
- <attribute name="agent_email" hidden="1"/>
- <attribute name="related_problem_id" hidden="1"/>
- <attribute name="related_problem_ref"/>
- <attribute name="related_change_id" hidden="1"/>
- <attribute name="related_change_ref"/>
- <attribute name="close_date" hidden="1"/>
- <attribute name="last_update" read_only="1"/>
- <attribute name="assignment_date" hidden="1"/>
- <attribute name="resolution_date" hidden="1"/>
- <attribute name="tto_escalation_deadline" read_only="1"/>
- <attribute name="ttr_escalation_deadline" hidden="1"/>
- <attribute name="closure_deadline" hidden="1"/>
- <attribute name="resolution_code" hidden="1"/>
- <attribute name="solution" hidden="1"/>
- <attribute name="user_satisfaction" hidden="1"/>
- <attribute name="user_commment" hidden="1"/>
- <attribute name="request_type" mandatory="1"/>
- <attribute name="freeze_reason" hidden="1"/>
- <attribute name="related_change_id_finalclass_recall"/>
- </flags>
- <transitions>
- <transition stimulus="ev_assign" target="assigned">
- <actions>
- <action verb="SetAssignedDate"/>
- </actions>
- </transition>
- <transition stimulus="ev_timeout" target="escalated_tto">
- <actions/>
- </transition>
- </transitions>
- </state>
- <state name="escalated_tto">
- <flags>
- <attribute name="ref" read_only="1"/>
- <attribute name="title"/>
- <attribute name="description"/>
- <attribute name="ticket_log"/>
- <attribute name="start_date" read_only="1"/>
- <attribute name="document_list"/>
- <attribute name="ci_list"/>
- <attribute name="contact_list"/>
- <attribute name="incident_list"/>
- <attribute name="status"/>
- <attribute name="caller_id" mandatory="1"/>
- <attribute name="caller_email"/>
- <attribute name="org_id"/>
- <attribute name="org_name"/>
- <attribute name="service_id"/>
- <attribute name="service_name"/>
- <attribute name="servicesubcategory_id"/>
- <attribute name="servicesubcategory_name"/>
- <attribute name="product"/>
- <attribute name="impact"/>
- <attribute name="urgency"/>
- <attribute name="priority" read_only="1"/>
- <attribute name="workgroup_id"/>
- <attribute name="workgroup_name"/>
- <attribute name="agent_id"/>
- <attribute name="agent_name"/>
- <attribute name="agent_email" hidden="1"/>
- <attribute name="related_problem_id" hidden="1"/>
- <attribute name="related_problem_ref"/>
- <attribute name="related_change_id" hidden="1"/>
- <attribute name="related_change_ref"/>
- <attribute name="close_date" hidden="1"/>
- <attribute name="last_update" read_only="1"/>
- <attribute name="assignment_date" hidden="1"/>
- <attribute name="resolution_date" hidden="1"/>
- <attribute name="tto_escalation_deadline" read_only="1"/>
- <attribute name="ttr_escalation_deadline" hidden="1"/>
- <attribute name="closure_deadline" hidden="1"/>
- <attribute name="resolution_code" hidden="1"/>
- <attribute name="solution" hidden="1"/>
- <attribute name="user_satisfaction" hidden="1"/>
- <attribute name="user_commment" hidden="1"/>
- <attribute name="request_type" mandatory="1"/>
- <attribute name="freeze_reason" hidden="1"/>
- <attribute name="related_change_id_finalclass_recall"/>
- </flags>
- <transitions>
- <transition stimulus="ev_assign" target="assigned">
- <actions>
- <action verb="SetAssignedDate"/>
- </actions>
- </transition>
- </transitions>
- </state>
- <state name="assigned">
- <flags>
- <attribute name="ref" read_only="1"/>
- <attribute name="title" read_only="1"/>
- <attribute name="description" read_only="1"/>
- <attribute name="ticket_log"/>
- <attribute name="start_date" read_only="1"/>
- <attribute name="document_list"/>
- <attribute name="ci_list"/>
- <attribute name="contact_list"/>
- <attribute name="incident_list"/>
- <attribute name="status"/>
- <attribute name="caller_id" read_only="1"/>
- <attribute name="caller_email"/>
- <attribute name="org_id" read_only="1"/>
- <attribute name="org_name"/>
- <attribute name="service_id"/>
- <attribute name="service_name"/>
- <attribute name="servicesubcategory_id"/>
- <attribute name="servicesubcategory_name"/>
- <attribute name="product"/>
- <attribute name="impact"/>
- <attribute name="urgency"/>
- <attribute name="priority" read_only="1"/>
- <attribute name="workgroup_id" mandatory="1" must_prompt="1"/>
- <attribute name="workgroup_name"/>
- <attribute name="agent_id" mandatory="1" must_prompt="1"/>
- <attribute name="agent_name"/>
- <attribute name="agent_email" read_only="1"/>
- <attribute name="related_problem_id"/>
- <attribute name="related_problem_ref"/>
- <attribute name="related_change_id"/>
- <attribute name="related_change_ref"/>
- <attribute name="close_date" hidden="1"/>
- <attribute name="last_update" read_only="1"/>
- <attribute name="assignment_date" hidden="1"/>
- <attribute name="resolution_date" hidden="1"/>
- <attribute name="tto_escalation_deadline" hidden="1"/>
- <attribute name="ttr_escalation_deadline" read_only="1"/>
- <attribute name="closure_deadline" hidden="1"/>
- <attribute name="resolution_code" hidden="1"/>
- <attribute name="solution" hidden="1"/>
- <attribute name="user_satisfaction" hidden="1"/>
- <attribute name="user_commment" hidden="1"/>
- <attribute name="request_type" mandatory="1"/>
- <attribute name="freeze_reason" hidden="1"/>
- <attribute name="related_change_id_finalclass_recall"/>
- </flags>
- <transitions>
- <transition stimulus="ev_reassign" target="assigned">
- <actions/>
- </transition>
- <transition stimulus="ev_timeout" target="escalated_ttr">
- <actions/>
- </transition>
- <transition stimulus="ev_resolve" target="resolved">
- <actions>
- <action verb="SetResolveDate"/>
- <action verb="SetClosureDeadline"/>
- </actions>
- </transition>
- <transition stimulus="ev_freeze" target="frozen">
- <actions/>
- </transition>
- </transitions>
- </state>
- <state name="escalated_ttr">
- <flags>
- <attribute name="ref" read_only="1"/>
- <attribute name="title" read_only="1"/>
- <attribute name="description" read_only="1"/>
- <attribute name="ticket_log"/>
- <attribute name="start_date" read_only="1"/>
- <attribute name="document_list"/>
- <attribute name="ci_list"/>
- <attribute name="contact_list"/>
- <attribute name="incident_list"/>
- <attribute name="status"/>
- <attribute name="caller_id" read_only="1"/>
- <attribute name="caller_email"/>
- <attribute name="org_id" read_only="1"/>
- <attribute name="org_name"/>
- <attribute name="service_id"/>
- <attribute name="service_name"/>
- <attribute name="servicesubcategory_id"/>
- <attribute name="servicesubcategory_name"/>
- <attribute name="product"/>
- <attribute name="impact"/>
- <attribute name="urgency"/>
- <attribute name="priority" read_only="1"/>
- <attribute name="workgroup_id" mandatory="1" must_prompt="1"/>
- <attribute name="workgroup_name"/>
- <attribute name="agent_id" mandatory="1" must_prompt="1"/>
- <attribute name="agent_name"/>
- <attribute name="agent_email" read_only="1"/>
- <attribute name="related_problem_id"/>
- <attribute name="related_problem_ref"/>
- <attribute name="related_change_id"/>
- <attribute name="related_change_ref"/>
- <attribute name="close_date" hidden="1"/>
- <attribute name="last_update" read_only="1"/>
- <attribute name="assignment_date" hidden="1"/>
- <attribute name="resolution_date" hidden="1"/>
- <attribute name="tto_escalation_deadline" hidden="1"/>
- <attribute name="ttr_escalation_deadline" read_only="1"/>
- <attribute name="closure_deadline" hidden="1"/>
- <attribute name="resolution_code" hidden="1"/>
- <attribute name="solution" hidden="1"/>
- <attribute name="user_satisfaction" hidden="1"/>
- <attribute name="user_commment" hidden="1"/>
- <attribute name="request_type" mandatory="1"/>
- <attribute name="freeze_reason" hidden="1"/>
- <attribute name="related_change_id_finalclass_recall"/>
- </flags>
- <transitions>
- <transition stimulus="ev_reassign" target="escalated_ttr">
- <actions/>
- </transition>
- <transition stimulus="ev_resolve" target="resolved">
- <actions>
- <action verb="SetResolveDate"/>
- <action verb="SetClosureDeadline"/>
- </actions>
- </transition>
- </transitions>
- </state>
- <state name="frozen">
- <flags>
- <attribute name="ref" read_only="1"/>
- <attribute name="title" read_only="1"/>
- <attribute name="description" read_only="1"/>
- <attribute name="ticket_log"/>
- <attribute name="start_date" read_only="1"/>
- <attribute name="document_list"/>
- <attribute name="ci_list"/>
- <attribute name="contact_list"/>
- <attribute name="incident_list"/>
- <attribute name="status"/>
- <attribute name="caller_id" read_only="1"/>
- <attribute name="caller_email"/>
- <attribute name="org_id" read_only="1"/>
- <attribute name="org_name"/>
- <attribute name="service_id"/>
- <attribute name="service_name"/>
- <attribute name="servicesubcategory_id"/>
- <attribute name="servicesubcategory_name"/>
- <attribute name="product"/>
- <attribute name="impact"/>
- <attribute name="urgency"/>
- <attribute name="priority" read_only="1"/>
- <attribute name="workgroup_id" mandatory="1"/>
- <attribute name="workgroup_name"/>
- <attribute name="agent_id" mandatory="1"/>
- <attribute name="agent_name"/>
- <attribute name="agent_email" read_only="1"/>
- <attribute name="related_problem_id"/>
- <attribute name="related_problem_ref"/>
- <attribute name="related_change_id"/>
- <attribute name="related_change_ref"/>
- <attribute name="close_date" hidden="1"/>
- <attribute name="last_update" read_only="1"/>
- <attribute name="assignment_date" hidden="1"/>
- <attribute name="resolution_date" hidden="1"/>
- <attribute name="tto_escalation_deadline" hidden="1"/>
- <attribute name="ttr_escalation_deadline" read_only="1"/>
- <attribute name="closure_deadline" hidden="1"/>
- <attribute name="resolution_code" hidden="1"/>
- <attribute name="solution" hidden="1"/>
- <attribute name="user_satisfaction" hidden="1"/>
- <attribute name="user_commment" hidden="1"/>
- <attribute name="request_type" mandatory="1"/>
- <attribute name="freeze_reason" mandatory="1" must_prompt="1"/>
- <attribute name="related_change_id_finalclass_recall"/>
- </flags>
- <transitions>
- <transition stimulus="ev_timeout" target="escalated_ttr">
- <actions/>
- </transition>
- <transition stimulus="ev_assign" target="assigned">
- <actions/>
- </transition>
- <transition stimulus="ev_resolve" target="resolved">
- <actions/>
- </transition>
- </transitions>
- </state>
- <state name="resolved">
- <flags>
- <attribute name="ref" read_only="1"/>
- <attribute name="title" read_only="1"/>
- <attribute name="description" read_only="1"/>
- <attribute name="ticket_log"/>
- <attribute name="start_date" read_only="1"/>
- <attribute name="document_list"/>
- <attribute name="ci_list"/>
- <attribute name="contact_list"/>
- <attribute name="incident_list"/>
- <attribute name="status"/>
- <attribute name="caller_id" read_only="1"/>
- <attribute name="caller_email"/>
- <attribute name="org_id" read_only="1"/>
- <attribute name="org_name"/>
- <attribute name="service_id" read_only="1"/>
- <attribute name="service_name"/>
- <attribute name="servicesubcategory_id" read_only="1"/>
- <attribute name="servicesubcategory_name"/>
- <attribute name="product" read_only="1"/>
- <attribute name="impact" read_only="1"/>
- <attribute name="urgency" read_only="1"/>
- <attribute name="priority" read_only="1"/>
- <attribute name="workgroup_id" read_only="1"/>
- <attribute name="workgroup_name"/>
- <attribute name="agent_id" read_only="1"/>
- <attribute name="agent_name"/>
- <attribute name="agent_email" read_only="1"/>
- <attribute name="related_problem_id"/>
- <attribute name="related_problem_ref"/>
- <attribute name="related_change_id"/>
- <attribute name="related_change_ref"/>
- <attribute name="close_date" hidden="1"/>
- <attribute name="last_update" read_only="1"/>
- <attribute name="assignment_date" hidden="1"/>
- <attribute name="resolution_date" hidden="1"/>
- <attribute name="tto_escalation_deadline" hidden="1"/>
- <attribute name="ttr_escalation_deadline" hidden="1"/>
- <attribute name="closure_deadline" read_only="1"/>
- <attribute name="resolution_code" must_prompt="1"/>
- <attribute name="solution" must_prompt="1"/>
- <attribute name="user_satisfaction" hidden="1"/>
- <attribute name="user_commment" hidden="1"/>
- <attribute name="request_type" mandatory="1"/>
- <attribute name="freeze_reason" hidden="1"/>
- <attribute name="related_change_id_finalclass_recall"/>
- </flags>
- <transitions>
- <transition stimulus="ev_reassign" target="assigned">
- <actions/>
- </transition>
- <transition stimulus="ev_close" target="closed">
- <actions>
- <action verb="SetClosureDate"/>
- </actions>
- </transition>
- </transitions>
- </state>
- <state name="closed">
- <flags>
- <attribute name="ref" read_only="1"/>
- <attribute name="title" read_only="1"/>
- <attribute name="description" read_only="1"/>
- <attribute name="ticket_log" read_only="1"/>
- <attribute name="start_date" read_only="1"/>
- <attribute name="document_list"/>
- <attribute name="ci_list"/>
- <attribute name="contact_list"/>
- <attribute name="incident_list"/>
- <attribute name="status"/>
- <attribute name="caller_id" read_only="1"/>
- <attribute name="caller_email"/>
- <attribute name="org_id" read_only="1"/>
- <attribute name="org_name"/>
- <attribute name="service_id" read_only="1"/>
- <attribute name="service_name"/>
- <attribute name="servicesubcategory_id" read_only="1"/>
- <attribute name="servicesubcategory_name"/>
- <attribute name="product" read_only="1"/>
- <attribute name="impact" read_only="1"/>
- <attribute name="urgency" read_only="1"/>
- <attribute name="priority" read_only="1"/>
- <attribute name="workgroup_id" read_only="1"/>
- <attribute name="workgroup_name"/>
- <attribute name="agent_id" read_only="1"/>
- <attribute name="agent_name"/>
- <attribute name="agent_email" read_only="1"/>
- <attribute name="related_problem_id"/>
- <attribute name="related_problem_ref"/>
- <attribute name="related_change_id"/>
- <attribute name="related_change_ref"/>
- <attribute name="close_date" read_only="1"/>
- <attribute name="last_update" read_only="1"/>
- <attribute name="assignment_date" hidden="1"/>
- <attribute name="resolution_date" hidden="1"/>
- <attribute name="tto_escalation_deadline" hidden="1"/>
- <attribute name="ttr_escalation_deadline" hidden="1"/>
- <attribute name="closure_deadline" hidden="1"/>
- <attribute name="resolution_code" read_only="1"/>
- <attribute name="solution" read_only="1"/>
- <attribute name="user_satisfaction" must_prompt="1"/>
- <attribute name="user_commment" must_prompt="1"/>
- <attribute name="request_type" read_only="1"/>
- <attribute name="freeze_reason" hidden="1"/>
- <attribute name="related_change_id_finalclass_recall"/>
- </flags>
- <transitions/>
- </state>
- </states>
- </lifecycle>
- <methods>
- <method name="ComputeValues" static="false" access="public" type="Overload-DBObject"><![CDATA[ public function ComputeValues()
- {
- $sCurrRef = $this->Get('ref');
- if (strlen($sCurrRef) == 0)
- {
- $iKey = $this->GetKey();
- if ($iKey < 0)
- {
- // Object not yet in the Database
- $iKey = MetaModel::GetNextKey(get_class($this));
- }
- $sName = sprintf('R-%06d', $iKey);
- $this->Set('ref', $sName);
- }
- return parent::ComputeValues();
- }]]></method>
- <method name="GetIcon" static="false" access="public" type="Overload-DBObject"><comment><![CDATA[/**
- * Get the icon representing this object
- * @param boolean $bImgTag If true the result is a full IMG tag (or an emtpy string if no icon is defined)
- * @return string Either the full IMG tag ($bImgTag == true) or just the path to the icon file
- */]]></comment><![CDATA[ public function GetIcon($bImgTag = true)
- {
- $sStatus = $this->Get('status');
- switch($this->GetState())
- {
- case 'escalated_tto':
- case 'escalated_ttr':
- $sIcon = self::MakeIconFromName('user-request-escalated.png');
- break;
-
- case 'resolved':
- case 'closed':
- $sIcon = self::MakeIconFromName('user-request-closed.png');
- break;
- case 'new':
- $sIcon = self::MakeIconFromName('user-request.png');
- $oEscalationDeadline = $this->Get('tto_escalation_deadline');
- if ($oEscalationDeadline != null)
- {
- // A SLA is running
- $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
- $iEscalationDeadline = AttributeDateTime::GetAsUnixSeconds($oEscalationDeadline);
- $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
- if ($ratio <= 0)
- {
- $sIcon = self::MakeIconFromName('user-request-escalated.png');
- }
- else if ($ratio <= 0.25)
- {
- $sIcon = self::MakeIconFromName('user-request-deadline.png');
- }
- }
- break;
-
- case 'assigned':
- $sIcon = self::MakeIconFromName('user-request.png');
- $oEscalationDeadline = $this->Get('ttr_escalation_deadline');
- if ($oEscalationDeadline != null)
- {
- // A SLA is running
- $iStartDate = AttributeDateTime::GetAsUnixSeconds($this->Get('start_date'));
- $iEscalationDeadline = AttributeDateTime::GetAsUnixSeconds($oEscalationDeadline);
- $ratio = ($iEscalationDeadline - time())/($iEscalationDeadline - $iStartDate);
- if ($ratio <= 0)
- {
- $sIcon = self::MakeIconFromName('user-request-escalated.png');
- }
- else if ($ratio <= 0.25)
- {
- $sIcon = self::MakeIconFromName('user-request-deadline.png');
- }
- }
- break;
-
- default:
- $sIcon = MetaModel::GetClassIcon(get_class($this), $bImgTag);
- }
- return $sIcon;
- }]]></method>
- <method name="MakeIconFromName" static="true" access="protected" type="Overload-DBObject"><![CDATA[ protected static function MakeIconFromName($sIconName, $bImgTag = true)
- {
- $sIcon = '';
- if ($sIconName != '')
- {
- $sPath = utils::GetAbsoluteUrlModulesRoot().'itop-request-mgmt-1.0.0/images/'.$sIconName;
- if ($bImgTag)
- {
- $sIcon = "<img src=\"$sPath\" style=\"vertical-align:middle;\"/>";
- }
- else
- {
- $sIcon = $sPath;
- }
- }
- return $sIcon;
- }]]></method>
- </methods>
- <presentation>
- <details>
- <items>
- <item>document_list</item>
- <item>ci_list</item>
- <item>contact_list</item>
- <item>incident_list</item>
- <item key="col:col1">
- <items>
- <item key="fieldset:Ticket:baseinfo">
- <items>
- <item>ref</item>
- <item>title</item>
- <item>org_id</item>
- <item>status</item>
- <item>priority</item>
- <item>request_type</item>
- <item>service_id</item>
- <item>servicesubcategory_id</item>
- <item>product</item>
- </items>
- </item>
- <item key="fieldset:Ticket:moreinfo">
- <items>
- <item>impact</item>
- <item>urgency</item>
- <item>description</item>
- <item>resolution_code</item>
- <item>solution</item>
- <item>user_satisfaction</item>
- <item>user_commment</item>
- <item>freeze_reason</item>
- </items>
- </item>
- </items>
- </item>
- <item key="col:col2">
- <items>
- <item key="fieldset:Ticket:date">
- <items>
- <item>start_date</item>
- <item>last_update</item>
- <item>assignment_date</item>
- <item>tto_escalation_deadline</item>
- <item>ttr_escalation_deadline</item>
- <item>close_date</item>
- <item>closure_deadline</item>
- </items>
- </item>
- <item key="fieldset:Ticket:contact">
- <items>
- <item>caller_id</item>
- <item>workgroup_id</item>
- <item>agent_id</item>
- </items>
- </item>
- <item key="fieldset:Ticket:relation">
- <items>
- <item>related_problem_id</item>
- <item>related_change_id</item>
- </items>
- </item>
- </items>
- </item>
- </items>
- </details>
- <search>
- <items>
- <item>ref</item>
- <item>title</item>
- <item>org_id</item>
- <item>request_type</item>
- <item>start_date</item>
- <item>status</item>
- <item>caller_id</item>
- <item>service_id</item>
- <item>servicesubcategory_id</item>
- <item>product</item>
- <item>impact</item>
- <item>urgency</item>
- <item>priority</item>
- <item>workgroup_id</item>
- <item>agent_id</item>
- <item>agent_email</item>
- <item>close_date</item>
- <item>resolution_code</item>
- <item>solution</item>
- <item>user_satisfaction</item>
- <item>user_commment</item>
- </items>
- </search>
- <list>
- <items>
- <item>title</item>
- <item>org_id</item>
- <item>start_date</item>
- <item>status</item>
- <item>service_id</item>
- <item>priority</item>
- <item>workgroup_id</item>
- <item>agent_id</item>
- </items>
- </list>
- </presentation>
- </class>
- </classes>
- <menus>
- <menu id="RequestManagement" xsi:type="MenuGroup">
- <rank value="30"/>
- </menu>
- <menu id="UserRequest:Overview" xsi:type="TemplateMenuNode">
- <rank value="0"/>
- <parent value="RequestManagement"/>
- <template_file value="overview.html"/>
- </menu>
- <menu id="NewUserRequest" xsi:type="NewObjectMenuNode">
- <rank value="1"/>
- <parent value="RequestManagement"/>
- <class value="UserRequest"/>
- </menu>
- <menu id="SearchUserRequests" xsi:type="SearchMenuNode">
- <rank value="2"/>
- <parent value="RequestManagement"/>
- <class value="UserRequest"/>
- </menu>
- <menu id="UserRequest:Shortcuts" xsi:type="TemplateMenuNode">
- <rank value="3"/>
- <parent value="RequestManagement"/>
- <template_file value=""/>
- </menu>
- <menu id="UserRequest:MyRequests" xsi:type="OQLMenuNode">
- <rank value="1"/>
- <parent value="UserRequest:Shortcuts"/>
- <oql value="SELECT UserRequest WHERE agent_id = :current_contact_id AND status NOT IN ("closed","resolved")"/>
- <do_search value=""/>
- <auto_reload value="fast"/>
- </menu>
- <menu id="UserRequest:EscalatedRequests" xsi:type="OQLMenuNode">
- <rank value="2"/>
- <parent value="UserRequest:Shortcuts"/>
- <oql value="SELECT UserRequest WHERE status IN ("escalated_tto", "escalated_ttr")"/>
- <do_search value=""/>
- <auto_reload value="fast"/>
- </menu>
- <menu id="UserRequest:OpenRequests" xsi:type="OQLMenuNode">
- <rank value="3"/>
- <parent value="UserRequest:Shortcuts"/>
- <oql value="SELECT UserRequest WHERE status IN ("new", "assigned", "escalated_tto", "escalated_ttr", "frozen", "resolved")"/>
- <do_search value=""/>
- <auto_reload value="fast"/>
- </menu>
- </menus>
- </itop_design>
|