[rt-users] simple custom action question
Drew Barnes
barnesaw at ucrwcu.rwc.uc.edu
Mon Nov 7 13:43:16 EST 2005
Andy Moran wrote:
> 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.
IIRC, the take action also opens the ticket. Are you talking about
manually changing owner?
> 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
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
>
> Buy your copy of our new book, RT Essentials, today!
>
> Download a free sample chapter from http://rtbook.bestpractical.com
>
--
Drew Barnes
Applications Analyst
Raymond Walters College
University of Cincinnati
More information about the rt-users
mailing list