[rt-users] How to get requestor Custom Fields data on Template

Emmanuel Lacour elacour at easter-eggs.com
Sat Sep 11 16:43:26 EDT 2010


On Sat, Sep 11, 2010 at 05:07:21PM +0800, nectar wrote:
> Sir
> 
> We can use {$Ticket->FirstCustomFieldValue('name')} to get custom
> fileds which apply ticket, and use
> {$Ticket->CreatorObj->FirstCustomFieldValue('InstantMessaging')} to
> get custom fileds which belong creator, but sometimes, we created new
> ticket for clients(for example, create a abuse ticket for client). How
> to get requestor Custom Fields data? RequestorObj is not working.
> 

if you're working with only one requestor per ticket, you can user this:

$Ticket->Requestors->UserMembersObj->First->FirstCustomFieldValue('InstantMessaging')




More information about the rt-users mailing list