Syntax for custom conditions

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

As a finishing touch to a new RT installation I’m trying to make some custom
auto-replies depending on the queue. So I’ve made a new Scrip with these
parameters:

Condition: On create
Custom condition: return $Ticket->QueueObj->Name() eq ‘Orders’;
Action: Autoreply To Requstors
Template: OrderAcknowledgement

Unfortunately the auto-reply seems to go out for tickets created in any
queue-- can someone show me what I’m doing wrong?

cheers,


Matthew Bloch Bytemark Hosting
tel. +44 (0) 8707 455026
http://www.bytemark-hosting.co.uk/
Dedicated Linux hosts from 15ukp ($26) per month
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/jBK9T2rVDg8aLXQRAnSqAJ9CUPc+eZZAHFbJSEMbr1r0mbPQBACghNg1
YDEYO9pmB84+TLu2NLcRU+c=
=G579
-----END PGP SIGNATURE-----

Condition: On create
Custom condition: return $Ticket->QueueObj->Name() eq ‘Orders’;
Action: Autoreply To Requstors
Template: OrderAcknowledgement

Unfortunately the auto-reply seems to go out for tickets created in any
queue-- can someone show me what I’m doing wrong?

Are you adding these as global scrips? Why not dispense with the
custom condition and create them as queue specific scrips?

Michael
Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On Tuesday 14 October 2003 16:29, you wrote:

On Tue, Oct 14, 2003 at 04:14:05PM +0100, Matthew Bloch wrote:

Condition: On create
Custom condition: return $Ticket->QueueObj->Name() eq ‘Orders’;
Action: Autoreply To Requstors
Template: OrderAcknowledgement

Unfortunately the auto-reply seems to go out for tickets created in any
queue-- can someone show me what I’m doing wrong?

Are you adding these as global scrips? Why not dispense with the
custom condition and create them as queue specific scrips?

Thanks, that solves the problem of course, I’m still groping my way around! I
would appreciate knowing what the right syntax is for custom conditions, even
in this convoluted case.


Matthew Bloch Bytemark Hosting
tel. +44 (0) 8707 455026
http://www.bytemark-hosting.co.uk/
Dedicated Linux hosts from 15ukp ($26) per month
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/jBbnT2rVDg8aLXQRAseAAJ9cz3paQ4kC5RaPqAl3wthcm5hAnACdH+QW
q2rwbMH0gsNDWvrjq4fEi1c=
=CP1b
-----END PGP SIGNATURE-----

Hello, Matthew.
Matthew Bloch wrote:

Hi there,

As a finishing touch to a new RT installation I’m trying to make some custom
auto-replies depending on the queue. So I’ve made a new Scrip with these
parameters:

Condition: On create
You must use ‘user defined’ in conditions list to apply ‘custom condition’
Custom condition: return $Ticket->QueueObj->Name() eq ‘Orders’;
And custom condition should be:
return ($self->TransactionObj->Type eq ‘Create’ &&
$self->TicketObj->QueueObj->Name eq ‘Orders’);
Action: Autoreply To Requstors
Template: OrderAcknowledgement

Unfortunately the auto-reply seems to go out for tickets created in any
queue-- can someone show me what I’m doing wrong?

cheers,

Good luck. Ruslan.