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.

Some guidance on getting this to work would be much appreciated.
Thanks in advance.


      

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