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

nectar nectar020 at gmail.com
Sun Sep 12 06:00:16 EDT 2010


Emmanuel,

Thanks, it works.

--
LiuJia

On Sun, Sep 12, 2010 at 4:43 AM, Emmanuel Lacour
<elacour at easter-eggs.com> wrote:
> 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')
>
>
> RT Training in Washington DC, USA on Oct 25 & 26 2010
> Last one this year -- Learn how to get the most out of RT!
>



More information about the rt-users mailing list