事件工单的登记和处理均是IT相关人员。
在登记事件工单时,同时安排处理团队和人员,把‘指派’这个节点去掉,登记后,处理人员直接进行处理。
cd /var/www/html/itop/datamodels/2.x/itop-incident-mgmt-itil
cp datamodel.itop-incident-mgmt-itil.xml datamodel.itop-incident-mgmt-itil.xml.bak
<state id="assigned">
<inherit_flags_from>new</inherit_flags_from>
<flags>
<attribute id="team_id">
<mandatory/>
<must_prompt/>
<read_only/>
</attribute>
<attribute id="agent_id">
<mandatory/>
<must_prompt/>
<read_only/>
</attribute>
......
<transitions>
......
<transition id="ev_resolve">
<target>resolved</target>
<actions>
<action>
<verb>SetCurrentDate</verb>
<params>
<param xsi:type="attcode">resolution_date</param>
</params>
</action>
<action>
<verb>SetElapsedTime</verb>
<params>
<param xsi:type="attcode">time_spent</param>
<param xsi:type="attcode">start_date</param>
<param xsi:type="string">DefaultWorkingTimeComputer</param>
</params>
</action>
<action>
<verb>ResolveChildTickets</verb>
<params/>
</action>
</actions>
</transition>
......
<state id="new">
<flags>
...
<attribute id="team_id">
<mandatory/>
<must_prompt/>
</attribute>
<attribute id="agent_id">
<mandatory/>
<must_prompt/>
</attribute>
</flags>
<!--
<transition id="ev_assign">
<target>assigned</target>
<actions>
<action>
<verb>SetCurrentDate</verb>
<params>
<param xsi:type="attcode">assignment_date</param>
</params>
</action>
</actions>
</transition>
-->
<transition id="ev_resolve">
<target>resolved</target>
<actions>
<action>
<verb>SetCurrentDate</verb>
<params>
<param xsi:type="attcode">resolution_date</param>
</params>
</action>
<action>
<verb>SetElapsedTime</verb>
<params>
<param xsi:type="attcode">time_spent</param>
<param xsi:type="attcode">start_date</param>
<param xsi:type="string">DefaultWorkingTimeComputer</param>
</params>
</action>
<action>
<verb>ResolveChildTickets</verb>
<params/>
</action>
</actions>
</transition>