I’m attempting to AutoSet the owner of all tickets for a certain queue
to a certain user. I found this Request Tracker Wiki on the Wiki which
allows you to AutoSet the owner to the current users. I attempted to
modify it to just set to a specific user, but couldn’t work out how to
change it.
If there’s someone out there that’s done this and knows what the key is
can they please help me out!
You have to change:
$self->TicketObj->SetOwner($Actor)
to
$self->TicketObj->SetOwner()
If you want enter user name or email address, then you should find
example on the wiki how to load user info by name and get its id.
Code would look like:
…
my $user = RT::User->new( $RT::SystemUser );
$user->Load( ‘name’ );
$self->TicketObj->SetOwner( $user->id );
…On 10/6/05, Stevo checkpoint@ozbergs.com wrote:
Hey Guys,
I’m attempting to AutoSet the owner of all tickets for a certain queue
to a certain user. I found this Request Tracker Wiki on the Wiki which
allows you to AutoSet the owner to the current users. I attempted to
modify it to just set to a specific user, but couldn’t work out how to
change it.
If there’s someone out there that’s done this and knows what the key is
can they please help me out!