Accessing Specific Customfield

Hi,

I have created a custom RT page that shows all the resolved tickets
For a selected queue for a selected month. We have created a Custom field
Called “Summary” that we use to provude customers with some text about their
Tickets. Is there an easy method to display the value of this specific
Custom field. At the moment I have reused some code that loops thru all the
Custom fields and just displays the “summary” field, but I was hoping to
Do something like

% print $Ticket->CustomFieldValue{‘Summary’}

At the moment I use this, which seems ineffecient for my purpose

% while (my $CustomField = $CustomFields->Next()) {
% my $Values = $Ticket->CustomFieldValues($CustomField->Id);
% if ($CustomField->Name == “Summary”) {
% while (my $Value = $Values->Next()) {
% if ($Values->Count()) {
% if ($Value->Content == “”) {
% $summarytxt = “(No Summary)”
% } else {
% $summarytxt = $Value->Content;
% }
% print “$summarytxt
\n”;
% }
% }
% }
% }

Hi,

I have created a custom RT page that shows all the resolved tickets
For a selected queue for a selected month. We have created a Custom field
Called “Summary” that we use to provude customers with some text about their
Tickets. Is there an easy method to display the value of this specific
Custom field. At the moment I have reused some code that loops thru all the
Custom fields and just displays the “summary” field, but I was hoping to
Do something like

% print $Ticket->CustomFieldValue{‘Summary’}

Close.
$Ticket->FirstCustomFieldValue(‘Summary’);

Note that this probably showed up in 3.0.3 or 3.0.4. Note also that I
just woke up, so there’s a slight chance I’m on crack.

Request Tracker — Best Practical Solutions – Trouble Ticketing. Free.