[rt-users] Syntax for custom conditions

Ruslan U. Zakirov cubic at acronis.ru
Tue Oct 14 11:36:08 EDT 2003


	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.




More information about the rt-users mailing list