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
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com

Reply via email to