Browse Source

- New datas for the setup: default trigger & email action

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@259 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 years ago
parent
commit
5821412580
2 changed files with 28 additions and 0 deletions
  1. 7 0
      setup/data/structure/23.triggers.xml
  2. 21 0
      setup/data/structure/24.actions.xml

+ 7 - 0
setup/data/structure/23.triggers.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Set>
+<TriggerOnObjectCreate id="2">
+<description>Incident Creation</description>
+<target_class>bizIncidentTicket</target_class>
+</TriggerOnObjectCreate>
+</Set>

+ 21 - 0
setup/data/structure/24.actions.xml

@@ -0,0 +1,21 @@
+<?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-&gt;caller_id</to>
+<cc></cc>
+<bcc></bcc>
+<subject>New iTop ticket [$this-&gt;severity$]: $this-&gt;name$, $this-&gt;title$</subject>
+<body>&lt;h1&gt;A new iTop incident has been created: $this-&gt;name$&lt;/h1&gt;
+&lt;p&gt;Description: $this-&gt;title$&lt;/p&gt;
+&lt;p&gt;Initial situation: &lt;pre&gt;$this-&gt;initial_situation$&lt;/pre&gt;&lt;/p&gt;
+&lt;p&gt;Ticket Type: $this-&gt;type$&lt;/p&gt;
+&lt;p&gt;Ticket assigned to: $this-&gt;workgroup_name$&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;More information: $this-&gt;hyperlink()$&lt;/p&gt;</body>
+<importance>normal</importance>
+</ActionEmail>
+</Set>