[rt-users] Getting names/values for all custom fields attached to a ticket

Emmanuel Lacour elacour at easter-eggs.com
Tue Nov 4 10:52:00 EST 2014


On Tue, Nov 04, 2014 at 03:44:55PM +0000, Chris Down wrote:
> I think I eventually found what I want[0]:
> 
>    $ticket->CustomFieldValuesAsString($custom_field_name);

$ticket->FirstCustomFieldValue($custom_field_name);

looks what you're lookign for ;)


RT::Ticket is based on RT::Record, so you can user every methods
available on this last one on a ticket.




-- 
Easter-eggs                              Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37    -   Fax: +33 (0) 1 43 35 00 76
mailto:elacour at easter-eggs.com  -   http://www.easter-eggs.com



More information about the rt-users mailing list