[rt-users] How to get CustomFields to tickets list?

Petr Grolmus indy at civ.zcu.cz
Thu Apr 19 09:09:34 EDT 2007


Hello,

does anyone know how to get values from CustomField to the tickets list?
I found that I need to modify the $DefaultSearchResultFormat in
RT_SiteConfig, but I cannot figure how to force RT print values of custom
field named "Area". I tried something like this:

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,
    CustomField{Area},
    '__NEWLINE__',
    '',
    '<small>__Requestors__</small>',
    '<small>__CreatedRelative__</small>',
    '<small>__ToldRelative__</small>',
    '<small>__LastUpdatedRelative__</small>',
    '<small>__TimeLeft__</small>',
    ''});

Even several next possible modification such as:
CustomField{\"Area\"}
'__CustomField{Area}__'
'__CustomField{"Area"}__'

I've tried to change CustomField to CF - in regular expression should work
both ways - but nothing helped :(

I'm using RT 3.6.1 from Debian Linux.

Thanx,
-indy

--------------------------------------------------------------------------
 Petr Grolmus

 Laboratory for Computer Science
 University of West Bohemia
 Univerzitni 20, 306 14 Pilsen                      Tel.: +420 377 632 851
 Czech Republic                                    E-mail: indy at civ.zcu.cz
--------------------------------------------------------------------------




More information about the rt-users mailing list