[rt-users] Scrip problem

Stephen Turner sturner at MIT.EDU
Fri Mar 23 16:12:45 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,

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 




More information about the rt-users mailing list