[rt-users] Setting a default owner on a per queue basis

Jonas Lincoln lincoln at unit.liu.se
Fri May 23 08:14:16 EDT 2003


Bah, missing an end-qoute.

% if ($QueueObj->Name eq 'TheQueue') {
     <& /Elements/SelectOwner, Name => "Owner", QueueObj => $QueueObj,
Default => $ARGS{Owner}||"Id for the default queue-user" &>
% } else {
     <& /Elements/SelectOwner, Name => "Owner", QueueObj => $QueueObj,
Default => $ARGS{Owner}||undef &>
% }

Jonas Lincoln wrote:
> In share/html/Ticket/Create.html, find the row:
> 
> <& /Elements/SelectOwner, Name => "Owner", QueueObj => $QueueObj, 
> Default => $ARGS{Owner}||undef &>
> 
> Replace with
> % if ($QueueObj->Name eq 'TheQueue) {
>     <& /Elements/SelectOwner, Name => "Owner", QueueObj => $QueueObj, 
> Default => $ARGS{Owner}||"Id for the default queue-user" &>
> % } else {
>     <& /Elements/SelectOwner, Name => "Owner", QueueObj => $QueueObj, 
> Default => $ARGS{Owner}||undef &>
> % }
> Replace string where appropriate.
> 
> Save as local/html/Ticket/Create.html
> 
> Cheers,
> Jonas
> 
> Ron Alexander wrote:
> 
>> The default action in RT is to set the default owner to
>> $session{CurrentUser}. This is fine except in one of my queues there
>> will be one owner 99% of the time and they almost never fill out the
>> ticket. What is an easy way to change the default owner of a ticket in
>> the Create.html page? I don't want a scrip because I want this to occur
>> in the template, not an action after the form is submitted.
>>
>> Thanks,
>> Ron
> 
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm




More information about the rt-users mailing list