<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 16/07/12 15:38, Ajunpreet Singh
wrote:<br>
</div>
<blockquote
cite="mid:CAExtiFop11uQoYHJ=FwZLgX4L7JCMHs-4KJ-amiaY6DhgrCehg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Is there a way to initiate a scrip based on both a specific status
change and if the transaction type is correspond?
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--------
List info: <a class="moz-txt-link-freetext" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel</a>
</pre>
</blockquote>
<font size="+1">Yes - when you create the scrip, you specify the
Condition - what transaction type it changes *TO* and in the "</font>Custom
action preparation code<font size="+1">" you put in code to validate
that the status change meets your requirements, and if not, return
0. This will then allow or prevent the main scrip body from
running, depending on your requirements.<br>
<br>
Hope that helps!</font><font size="+1"> </font><br>
<br>
<pre class="moz-signature" cols="72">--
Andy D'Arcy Jewell
SysMicro Limited
Linux Support
T: 0844 9918804
M: 07961605631
E: <a class="moz-txt-link-abbreviated" href="mailto:andy.jewell@sysmicro.co.uk">andy.jewell@sysmicro.co.uk</a>
W: <a class="moz-txt-link-abbreviated" href="http://www.sysmicro.co.uk">www.sysmicro.co.uk</a>
</pre>
</body>
</html>