[rt-users] Add Time difference in search result

Alex Peters alex at peters.net
Fri Aug 1 04:07:46 EDT 2014


I believe that you need to use "Reopened" in your search and the
BuildFormatString/Default callback, not "DifferenceReopenedTime" as you
currently have.

#
$RT_ROOT/local/html/Callbacks/MyRT/Search/Elements/BuildFormatString/Default
<%INIT>
push @{$Fields}, 'Reopened';
</%INIT>
<%ARGS>
$Fields => undef
</%ARGS>


On 1 August 2014 17:55, AJ <aaron.mccarthy at southwestern.ie> wrote:

> Hi Alex,
>
> The location path is
> /html/Callbacks/MyRT/Elements/RT__Ticket/ColumnMap/Once
>
> In the "Once" file I have contains this:
>
> <%init>
> $COLUMN_MAP->{DifferenceReopenedTime} =  {
>         title     => 'Reopened', # loc
>         attribute => 'Reopened',
>         value => sub {
>         return 'THIS WORKS';
>         }
> };
> </%init>
> <%args>
> $COLUMN_MAP
> </%args>
>
>
>
>
> --
> View this message in context:
> http://requesttracker.8502.n7.nabble.com/Add-Time-difference-in-search-result-tp58100p58141.html
> Sent from the Request Tracker - User mailing list archive at Nabble.com.
> --
> RT Training - Boston, September 9-10
> http://bestpractical.com/training
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140801/c46f194c/attachment.htm>


More information about the rt-users mailing list