[rt-devel] Status and Correspond Scrip

Andy D'Arcy Jewell andy.jewell at sysmicro.co.uk
Mon Jul 16 11:05:08 EDT 2012


On 16/07/12 15:38, Ajunpreet Singh wrote:
> Is there a way to initiate a scrip based on both a specific status 
> change and if the transaction type is correspond?
>
>
> --------
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
Yes - when you create the scrip, you specify the Condition - what 
transaction type it changes *TO* and in the "Custom action preparation 
code" 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.

Hope that helps!

-- 
Andy D'Arcy Jewell

SysMicro Limited
Linux Support
T:  0844 9918804
M:  07961605631
E:  andy.jewell at sysmicro.co.uk
W:  www.sysmicro.co.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20120716/0f004e5e/attachment.html>


More information about the rt-devel mailing list