[rt-users] Scrip problem

Stephen Turner sturner at MIT.EDU
Fri Mar 23 15:46:50 EDT 2007


At Friday 3/23/2007 03:37 PM, Kenneth Crocker wrote:
>To all,
>
>
>         I am creating a new scrip with the condition "on status 
> change" and additional condition code of:
>
>return 0 ( $self->TicketObj->Status eq 'open' );
>return 0 ( $self->TicketObj->Status eq 'deleted' );
>return 0 ( $self->TicketObj->Status eq 'resolved' );
>
>         I have used this additional condition code before, but for 
> only one status and it worked. In this situation, I do not want a 
> status change to "open", or "deleted" or "resolved" to take action, 
> as I have seperate scrips for those conditions. Now, I am getting 
> all three on this condition. Help??
>
>Kenn
>LBNL


Kenn,

You should use 'User defined' in the condition drop down, otherwise 
your custom code will be ignored. Also, it looks like you need to 
code 'if' in your lines of code.

Steve 




More information about the rt-users mailing list