[rt-users] simple custom action question
Andy Moran
andy at wildbrain.com
Mon Nov 7 13:40:39 EST 2005
Hey guys,
I want to create a simple scrip that changes the status of a ticket from
New to Open when someone Takes the ticket. The Custom Condition
should be similar to the On Steal example from RT Essentials:
my $trans = $self->TransactionObj;
return 0 unless $trans->Field eq 'Owner';
return 1 if $trans->OldValue == RT::Nobody()->id();
return 0;
So the Custom Action should just be a one-liner that changes the ticket
status. I was hoping to find an example of what that line would look
like but couldn't find one. Thanks for any help!
--Andy
More information about the rt-users
mailing list