Stephen,
Sorry I took so long to respond. That did it and thanks.
Kenn
LBNL
Stephen Turner wrote:
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,
One more thing - your custom code should reproduce the 'on status
change' condition and examine the new value of the status field:
if ($self->TransactionObj->Type eq "Status" &&
$self->TransactionObj->NewValue eq "resolved") etc
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