[rt-users] Custom Condition based on Transaction Custom Field value

Péter Márton marton.peter at gmail.com
Mon Mar 7 05:24:01 EST 2005


On Sun, 6 Mar 2005 20:11:42 -0500, Andy Harrison <aharrison at gmail.com> wrote:

> 
> $self->TicketObj->FirstCustomFieldValue('yourfield') will return the

I tried this, but i get "nix" as value:
$RT::Logger->error( ".iIi." .$self->TicketObj->FirstCustomFieldValue('nyomi'));
Mar  7 12:00:10 linux RT: .iIi.nix ((eval 980):1)

> contents of a custom field from the current ticket.  Individual
> transactions do not have custom fields.

If i go to configuration, custom fields, there are two sections:
"Custom Fields for Tickets" and "Custom Fields for Ticket
Transactions" and the latter is what i need.

> What are you trying to do?

I try to make a scrip that makes something (generates a file on the
server itself) based on the decision of the Comment maker. I thought
it would be the simplest way to have a custom field, what could be
filled out (or selected) at the time of making the comment. And bingo,
the "Custom Fields for Ticket Transactions" is exactly what i need
because it remains in its original state (undef) after the
transaction, and can be defined on the "Update ticket" page. But i
can't find a way to read that Custom Field. :(



More information about the rt-users mailing list