[rt-users] Read User Custom Field of Ticket Originator

Kevin Falcone falcone at bestpractical.com
Fri Jun 18 09:16:17 EDT 2010


On Thu, Jun 17, 2010 at 10:17:15AM -0700, Peter Roosakos wrote:
>    I was curious if anyone could point me to sample code snippet that would allow me to retrieve
>    the value of a user custom field associated with the original requestor/originator of a ticket
>    generated from an incoming email, from within a Scrip.  The ultimate goal is, on create of a
>    new ticket in the queue associated with email generated tickets, inspect a custom field for
>    the requestor of that ticket, and move the ticket to another queue based on the value of the
>    requestor's custom field. I have found lots of examples to read values of custom fields
>    associated directly with the ticket, but not user custom fields associated with the original
>    requestor.

It sounds like you want something like
$self->TicketObj->CreatorObj->FirstCustomFieldValue('...')

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100618/6c305cf8/attachment.sig>


More information about the rt-users mailing list