[rt-users] sort by Custom field
Zodal
zodal at centrum.cz
Tue Apr 14 08:06:48 EDT 2009
Hi all,
I have found a solution (I hope this is enough)
- add to the rt3/share/html/Elements/RT__Ticket/ColumnMap (RT 3.8.2)
Test => { #
name used in references
attribute => ”CF.{Test}”, # doing SortBy
title => ‘Test’, # this is shown as header
value => sub {
my $CFName = ”Test”; # this is the Custom Field name
my $values = $_[0]->CustomFieldValues( $CFName );
my @values = map {
(
($_->CustomFieldObj->Type eq 'Image')
? \($m->scomp( '/Elements/ShowCustomFieldImage',
Object => $_ ))
: $_->Content
),
\'<br />',
} @{ $values->ItemsArrayRef };
pop @values; # Remove that last <br />
return @values;
},
},
and than you can used '__Test__' in Tickets -> Advanced -> Format
I hope this is good for you,
Zodal
Ivan Samarin-2 wrote:
>
> Hello,
>
> Anyone have an idea how to do that?
> @Matt: could you find any solution?
>
> BR,
> Ivan
>
> 2009/3/17 Matt Hoover <mhoover at thectogroup.com>
>
>> I have some users asking to be able to "CLICK" on the headers in a
>> search.
>> Headers that contain custom fields are not clickable. How can I make
>> them
>> functional and clickable by our users?
>>
>> Matt
>>
>> _______________________________________________
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>
>> Community help: http://wiki.bestpractical.com
>> Commercial support: sales at bestpractical.com
>>
>>
>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>> Buy a copy at http://rtbook.bestpractical.com
>>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
--
View this message in context: http://www.nabble.com/sort-by-Custom-field-tp22550419p23038218.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
More information about the rt-users
mailing list