[rt-users] custom condition

Todd Chapman rt at chaka.net
Fri Apr 2 13:33:59 EST 2004


 if ($Transaction->NewValue ne 'open') {
        return 1;
 }
 return 0;

On Fri, Apr 02, 2004 at 03:06:24PM +0200, Bauer, Felix wrote:
> Hi,
> 
> I'm a bit stuck with my scrip. maybe I'm missing the docs or they r too
> thin (only had a look in the wiki, ML and the pdf).
> I'd like to have a scrip which sends an email to the requestor if the
> status changed to open (only for open). Since I have no
> idea where to put that condition, I thought about the custom condition
> (sounds right imho) and tried 
> 
> condition: 		On Status Change
> custom condition:	
> 	if ($Transaction->NewValue ne 'open') {
> 	 # well, here should be something that stops this scrip from
> processing
>             }
> action:			autoreply
> stage:			TransactionCreate
> vorlage:		global template: status change
> 
> but I just don't know how to stop the scrip from processing. I tried
> different returnvalues, exit-codes but I always
> get the emails for every status change.
> 
> please point me to a piece of docs where I can read _more_ about
> scrip-coding or maybe a small hint for current
> problem.
> 
> thx
> -fe
> _______________________________________________
> rt-users mailing list
> rt-users at lists.bestpractical.com
> http://lists.bestpractical.com/mailman/listinfo/rt-users
> 
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm



More information about the rt-users mailing list