[rt-users] checking/changing default queue for a user

Boris Epstein borepstein at gmail.com
Tue Jul 21 18:19:31 EDT 2015


Ken,

Thanks!

I could not find it in the settings.

However, it turned out that there was a scrip doing the job - universally,
for all users. Which actually makes more sense to me than trying to do it
on a user-by-user basis.

There was some issue with the code in that scrip so I fixed it temporarily
for now for now - and am contemplating better fixes as a permanent solution.

The fix is "On Create" and is run for all newly created tickets - including
the ones emailed in. It is structured along the following lines:

my $queuename = "";
my $email = ($self->TicketObj->RequestorAddresses)[0];
my $user = RT::User->new($RT::SystemUser);
$user->LoadByEmail($email);
die "Couldn't load user by email" unless $user->id;
...

followed by the logic that sets the queue depending upon who the user is.

Thanks once again to everybody for their assistance.

Cheers,

Boris.



On Tue, Jul 21, 2015 at 2:57 PM, ktm at rice.edu <ktm at rice.edu> wrote:

>
> Hi Boris,
>
> The option is a per-user configuration setting in their Preferences. It
> may be
> scrip(t)able with the RT API.
>
> Regards,
> Ken
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150721/0b869efe/attachment.htm>


More information about the rt-users mailing list