[rt-users] Scrip problem

Kenneth Crocker KFCrocker at lbl.gov
Wed Mar 28 13:31:08 EDT 2007


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



More information about the rt-users mailing list