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
/************************************************************
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:
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:
Hi,
I’ve tried using this code but I seem to be coming up with multiple errors.
Could there possibly be an updated version of this code?
Thanks!