[rt-users] Displaying custom field with Ticket API

Srikumar Nair srikumarp at fb.com
Sun Oct 23 19:26:37 EDT 2011

Great. That works nicely.

Thanks Ruslan.

From: Ruslan Zakirov <ruz at bestpractical.com<mailto:ruz at bestpractical.com>>
Date: Sat, 22 Oct 2011 15:05:12 +0400
To: Srikumar Nair <srikumarp at fb.com<mailto:srikumarp at fb.com>>
Cc: "rt-users at lists.bestpractical.com<mailto:rt-users at lists.bestpractical.com>" <rt-users at lists.bestpractical.com<mailto:rt-users at lists.bestpractical.com>>
Subject: Re: [rt-users] Displaying custom field with Ticket API

Use FirstCustomFieldValue method.

Regards, Ruslan. From phone.

22.10.2011 0:54 пользователь "Srikumar Nair" <srikumarp at fb.com<mailto:srikumarp at fb.com>> написал:
We have a Global custom field called Search_Criteria in Ticket object.
I am using the following code snippet to display this Search_Criteria in the tickets.

Apparently the print line is not correct; but after searching the mailing lists and the wiki I cannot find the correct way to do this.
What is the correct way here?

my $ticketSql = "Requestor.Name = '$requestor'";

my $tickets4Requestor = RT::Tickets->new(RT->SystemUser);

while (my $request = $tickets4Requestor->Next ) {
   print $request->CF.{Search_Criteria} . "\n";   ### ======> problem line.


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Washington DC, USA — October 31 & November 1, 2011
*  Barcelona, Spain — November 28 & 29, 2011
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111023/ea30667b/attachment.htm>

More information about the rt-users mailing list