[rt-users] sorting based on custom fields

Pieter van der Spek pieter at West.NL
Tue Jul 5 08:28:52 EDT 2005


I've added the following to RT_SiteConfig.pm:
------------------------------------------------
# Default columns in ticket list
Set ($DefaultSearchResultFormat, qq{
   '<B><A HREF="$RT::WebPath/Ticket/Display.html?id=__id__">__id__</a></B>/TITLE:#',
   '<B><A
HREF="$RT::WebPath/Ticket/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject',
   Status,
   QueueName,
   OwnerName,
   Priority,
   CF.{Category},
   '__NEWLINE__',
   '',
   '<small>__Requestors__</small>',
   '<small>__CreatedRelative__</small>',
   '<small>__ToldRelative__</small>',
   '<small>__LastUpdatedRelative__</small>',
   '<small>__TimeLeft__</small>',
   CF.{Severity}});
------------------------------------------------

As you can see I've added two custom fields. As expected they show up in the
table. However, they're not clickable (i.e. I cannot sort the table based on the
values of these custom fields). Is it possible to tweak RT in such a way that I
can sort on custom fields in the search results table?


-- 
-- Pieter van der Spek, pieter at west.nl, West Consulting B.V., +31 15 2191 600



More information about the rt-users mailing list