On Thu, Sep 16, 2010 at 12:25:45PM -0700, Shawn O'Connor wrote:
> I want to change the listing in RT at a glance to include "requestors", but 
> rather than return an email address, I want it to return the requestor's 
> Organization.  I've found the following: 
> /opt/rt3/share/html/Elements/RT__Ticket/ColumnMap.
> 
>  Requestors => {
>         title     => 'Requestors', # loc
>         attribute => 'Requestor.EmailAddress',        
>         value     => sub { return 
> $_[0]->Requestors->MemberEmailAddressesAsString }
> 
> I change value to:
> value   => sub { return $_[0]->CreatorObj->Organization }
> 
> And this kinda works as long as the requestor created the ticket.  But really 
> it is returning the creator of the ticket.  The unintended consequence is if 
> I create a ticket on behalf of a client and then change the requestor from me 
> to a client it still returns my organization name and not theirs.
> 

If you are sure that there is always one requestor, then use
Requestors->UserMembersObj->First->Organization.

Else, you have to write a sub to get all Organization to display them.


RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year -- Learn how to get the most out of RT!

Reply via email to