Custom condition

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

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@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm