[rt-users] assign ticket owner to nobody on resolve

Loos, Christian CLoos at netcologne.de
Mon Feb 26 11:02:34 EST 2007


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



More information about the rt-users mailing list