mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Sample data for triggers and actions
SVN:trunk[272]
This commit is contained in:
@@ -4,4 +4,14 @@
|
||||
<description>Incident Creation</description>
|
||||
<target_class>bizIncidentTicket</target_class>
|
||||
</TriggerOnObjectCreate>
|
||||
<TriggerOnStateEnter id="5">
|
||||
<description>Incident ticket assigned to agent</description>
|
||||
<target_class>bizIncidentTicket</target_class>
|
||||
<state>Assigned</state>
|
||||
</TriggerOnStateEnter>
|
||||
<TriggerOnStateEnter id="6">
|
||||
<description>Incident ticket resolved</description>
|
||||
<target_class>bizIncidentTicket</target_class>
|
||||
<state>Resolved</state>
|
||||
</TriggerOnStateEnter>
|
||||
</Set>
|
||||
@@ -1,21 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<ActionEmail id="1">
|
||||
<name>Simple eMail</name>
|
||||
<description>Default eMail action, tailor it to fit your needs</description>
|
||||
<from></from>
|
||||
<reply_to></reply_to>
|
||||
<to>SELECT bizContact AS C WHERE C.id = :this->caller_id</to>
|
||||
<cc></cc>
|
||||
<bcc></bcc>
|
||||
<subject>New iTop ticket [$this->severity$]: $this->name$, $this->title$</subject>
|
||||
<body><h1>A new iTop incident has been created: $this->name$</h1>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<ActionEmail id="4">
|
||||
<name>Incident Notification to a Workgroup</name>
|
||||
<description>This action informs a team that a ticket has been assigned their workgroup</description>
|
||||
<from></from>
|
||||
<reply_to></reply_to>
|
||||
<to>SELECT bizTeam AS t JOIN bizWorkgroup AS w ON w.team_id = t.id WHERE w.id=:this->workgroup_id</to>
|
||||
<cc></cc>
|
||||
<bcc></bcc>
|
||||
<subject>The ticket $this->name()$, severity $this->severity$ has been assigned to the workgroup $this->workgroup_name$</subject>
|
||||
<body><html>
|
||||
<body>
|
||||
<p>The incident ticket $this->name()$ has been assigned to the workgroup $this->workgroup_name$.</p>
|
||||
<p>Description: $this->title$</p>
|
||||
<p>Initial situation: <pre>$this->initial_situation$</pre></p>
|
||||
<p>Ticket Type: $this->type$</p>
|
||||
<p>Ticket assigned to: $this->workgroup_name$</p>
|
||||
<p>Initial Situation: $this->initial_situation$</p>
|
||||
<hr/>
|
||||
<p>More information: $this->hyperlink()$</p></body>
|
||||
<importance>normal</importance>
|
||||
</ActionEmail>
|
||||
</Set>
|
||||
<p>for more information on this ticket, click here: $this->hyperlink()$</p>
|
||||
</body>
|
||||
</html></body>
|
||||
<importance>normal</importance>
|
||||
</ActionEmail>
|
||||
<ActionEmail id="2">
|
||||
<name>Incident notification to Agent</name>
|
||||
<description>This action informs an agent that a ticket has been assigned to her/him</description>
|
||||
<from></from>
|
||||
<reply_to></reply_to>
|
||||
<to>SELECT bizPerson WHERE id=:this->agent_id</to>
|
||||
<cc></cc>
|
||||
<bcc></bcc>
|
||||
<subject>The ticket $this->name()$, severity $this->severity$ has been assigned to you</subject>
|
||||
<body><html>
|
||||
<body>
|
||||
<p>The incident ticket $this->name()$ has been assigned to you.</p>
|
||||
<p>Description: $this->title$</p>
|
||||
<p>Initial Situation: $this->initial_situation$</p>
|
||||
<hr/>
|
||||
<p>for more information on this ticket, click here: $this->hyperlink()$</p>
|
||||
</body>
|
||||
</html></body>
|
||||
<importance>normal</importance>
|
||||
</ActionEmail>
|
||||
<ActionEmail id="3">
|
||||
<name>Incident Notification to caller</name>
|
||||
<description>This action is used to inform the caller</description>
|
||||
<from></from>
|
||||
<reply_to></reply_to>
|
||||
<to>SELECT bizPerson WHERE id=:this->caller_id</to>
|
||||
<cc></cc>
|
||||
<bcc></bcc>
|
||||
<subject>Ticket $this->name()$, severity $this->severity$ - $this->ticket_status$</subject>
|
||||
<body><html>
|
||||
<body>
|
||||
<p>The incident ticket $this->name()$ has changed to status $this->ticket_status$</p>
|
||||
<p>Current situation: $this->current_situation$</p>
|
||||
<p>Last update: $this->last_update$</p>
|
||||
<hr/>
|
||||
<p>for more information on this ticket, click here: $this->hyperlink()$</p>
|
||||
</body>
|
||||
</html></body>
|
||||
<importance>normal</importance>
|
||||
</ActionEmail>
|
||||
</Set>
|
||||
23
setup/data/structure/25.trigger-actions.xml
Normal file
23
setup/data/structure/25.trigger-actions.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<lnkTriggerAction id="4">
|
||||
<action_id>2</action_id>
|
||||
<trigger_id>5</trigger_id>
|
||||
<order>1</order>
|
||||
</lnkTriggerAction>
|
||||
<lnkTriggerAction id="5">
|
||||
<action_id>3</action_id>
|
||||
<trigger_id>5</trigger_id>
|
||||
<order>2</order>
|
||||
</lnkTriggerAction>
|
||||
<lnkTriggerAction id="6">
|
||||
<action_id>3</action_id>
|
||||
<trigger_id>6</trigger_id>
|
||||
<order>1</order>
|
||||
</lnkTriggerAction>
|
||||
<lnkTriggerAction id="7">
|
||||
<action_id>4</action_id>
|
||||
<trigger_id>2</trigger_id>
|
||||
<order>1</order>
|
||||
</lnkTriggerAction>
|
||||
</Set>
|
||||
Reference in New Issue
Block a user