I hope this gets in, I've tried before and I do not get recognised.
I have been trying to create a scrip to cause the owner to change to
"nobody" when the Queue is changed. I have also created a new status
that I use as a condition. The following is the code:
— This code sets the owner to nobody for the new queue -----
$RT::Logger->debug(“trying to set owner”);
#my ($code, $msg) = $self->TicketObj->SetOwner(10, ‘Force’);
$self->TicketObj->_Set(Field => ‘Owner’, Value => 10);
#$RT::Logger->debug(“set owner: $code: $msg”);
The ticket changes Queue, but the owner stays the same. If I change the
Queue back to the one where the scrip resides, it gets moved AND the
owner now becomes “nobody”. This doesn’t make any sense. I’ve tried the
code in all three places for user scrip with seperate tests and it’s
always the same. Any help?