Hello,
ich take the script from wiki
http://wiki.bestpractical.com/index.cgi?AutoSetOwner an modified it.
My script looks like:
condition: on resolve
action: user defined
template: global template: blank
stage: transaction create
custom action preparation code:
return 1;
custom action cleanup code:
my $owner = $RT::Nobody->id;
my ($status, $msg) = $self->TicketObj->SetOwner( $owner );
unless( $status ) {
$RT::Logger->error( "Impossible to assign the ticket to $owner on resolve:
$msg" );
return undef;
}
return 1;
The error log says:
Impossible to assign the ticket to 10 on resolve: You can only reassign tickets
that you own or that are unowned ((eval 515):4)
On this point i am the owner of the ticket.
If i change the owner on the resolve page everything works fine.
Why does this script doesn't work?
Any ideas?
Thanks
Chris
_______________________________________________
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