I'm trying to write a scrip that runs on a status change. I'm trying
to change the owner to Nobody if a ticket is reopened, and I have the
following code in the action prep area:
my $oldStatus = $self->TransactionObj->OldValue;
my $newStatus = $self->TicketObj->status;
if (($oldStatus eq 'resolved') and ($newStatus eq 'open') {
$self->TicketObj->OwnerObj = RT::Nobody()->id();
}
I've run a couple tests through, but nothing seems to be happening.
First, what's the best way to debug custom action code? Second, if
anyone seems what I'm doing wrong, feel free to point it out.
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