[Rt-devel] Re: [rt-users] RT Queue Assignment

Ruslan Zakirov ruslan.zakirov at gmail.com
Sat May 27 21:19:38 EDT 2006

I've reproduced problem, relevant code is:
sub SetQueue {
    unless (
            Right    => 'OwnTicket',
            Object => $NewQueueObj
    return $self->_Set(...);

In the case described below current user changes owner from somebody
else to nobody user, so the action fails with "You can only reassign
tickets that you own or that are unowned". We have two variants:
1) $self->SetOwner($RT::Nobody->id, 'Force');
2) my $tmp = $self->new( $RT::SystemUser );
    $tmp->Load( $self->id );

Both do the same, but second solution creates transaction under system
user. Which one is correct variant?

On 5/21/06, Shen, Tyler <tyler.shen at vicscouts.asn.au> wrote:
> There seemed to be a bug with RT (or perhaps not any more) after I
> assigned a ticket taken by my colleague to another queue. While the
> ticket was changed to another queue, the owner of the ticket remained
> the same. However, the owner does not have right to own ticket in the
> new queue. Is there any fixes to this?
> I also noticed that when I changed a ticket owned by myself to another
> queue, the owner was automatically set to nobody. Thanks!
> Shen, Tyler
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
> We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html

Best regards, Ruslan.

More information about the Rt-devel mailing list