AutoSet Owner

Hey Guys,

I’m attempting to AutoSet the owner of all tickets for a certain queue
to a certain user. I found this
http://wiki.bestpractical.com/index.cgi?AutoSetOwner 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!

Thanks

Stevo

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
http://wiki.bestpractical.com/index.cgi?AutoSetOwner 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!

Thanks

Stevo


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

Best regards, Ruslan.