<div dir="ltr"><div>Sorry I wasn't clear. I'm talking about the results when you view all tickets for a certain queue. For instance, open a ticket in the Customer Service queue, and somewhere on that page is the queue name as a link. Clicking that link takes you to a page listing all active tickets in that queue. That list of tickets is what I want to modify.<br><br></div>I didn't realize until just now that the list is simply an automatic search. I don't know how to modify the results page for this search without changing the results for *any* search. At least I have a place to start now. I was thinking that queues had special pages listing their active tickets, so I was looking for that template.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 30, 2017 at 12:27 PM, Matt Zagrabelny <span dir="ltr"><<a href="mailto:mzagrabe@d.umn.edu" target="_blank">mzagrabe@d.umn.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alex,<br>
<span class=""><br>
On Mon, Jan 30, 2017 at 11:18 AM, Alex Hall <<a href="mailto:ahall@autodist.com">ahall@autodist.com</a>> wrote:<br>
> Hi all,<br>
> Where would I go to change the default format for the list of tickets shown<br>
> when you click a queue name?<br>
<br>
</span>I presume you are talking about the Queue List?<br>
<span class=""><br>
Can this be done on a queue-by-queue basis, or<br>
> only as a modification to some template in share/html?<br>
<br>
</span>I don't think there is anything out of the box that will do what you<br>
want. That being said, we use a callback to tweak the output for just<br>
a single queue.<br>
<br>
Note: the path may be different for the callback file location due to<br>
us running 4.2.<br>
<br>
# cat /opt/rt4/local/plugins/RT-<wbr>Site-UMN-Duluth-<wbr>QueueListTweaks/html/<wbr>Callbacks/RT-Site-UMN-Duluth-<wbr>QueueListTweaks/Elements/<wbr>QueueSummaryByLifecycle/<wbr>LinkBuilders<br>
<%INIT><br>
my $umd_link_all = sub {<br>
my ($queue, $all_statuses) = @_;<br>
my @escaped = @{$all_statuses};<br>
<br>
# People want to see resolved tickets in the calendar view<br>
# of their QueueList - that is, for the Computer Management (CM) queue.<br>
# Aside from this "if" statement, this sub routine was lifted from<br>
# upstream's version.<br>
if ($queue->{Name} eq 'CM') {<br>
push @escaped, 'resolved';<br>
}<br>
<br>
s{(['\\])}{\\$1}g for @escaped; #'# help out the syntax highlighting<br>
<br>
my $search = ${$build_search_link}->(<br>
$queue->{Name},<br>
"(".join(" OR ", map "Status = '$_'", @escaped).")",<br>
);<br>
<br>
if ($queue->{Name} eq 'CM') {<br>
my @fields = map<br>
{ "'<small>__${_}__</small>'" }<br>
(<br>
'Created',<br>
'Due',<br>
'Resolved',<br>
'Started',<br>
'Starts',<br>
'LastUpdated',<br>
)<br>
;<br>
<br>
my $format = $m->interp->apply_escapes(<br>
join(',', @fields),<br>
'u',<br>
);<br>
$search .= '&Format='.$format;<br>
}<br>
<br>
return $search;<br>
};<br>
<br>
${$link_all} = $umd_link_all;<br>
</%INIT><br>
<%ARGS><br>
$build_search_link<br>
$link_all<br>
$link_status<br>
</%ARGS><br>
<br>
Enjoy,<br>
<br>
-m<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div>