Including custom field values in templates

Struggling with this one. Created a custom field called “AoR” which is
a Select One Value field. Applies to Tickets. Added it to my queue.
Can see and use it on the web interface no problem.

I just want to modify my standard template for On Resolve to include a
phrase like “A ticket with AoR: SampleValue was just resolved” but I
can’t for the life of me figure out how to use the $Ticket variable to
get to the custom fields or their values. Been reading docs, source
code, RT Essentials book and prolific use of Data::Dumper to try to
figure this out, but I’m just missing it. :-/

Can someone help?

Thanks,
Fran

Fran Fabrizio
Senior Systems Analyst
Department of Computer and Information Sciences
University of Alabama at Birmingham
http://www.cis.uab.edu/
205.934.0653

Hi Fran,

To use the value of a custom field “AoR” in a template:

my $aor = $Ticket->FirstCustomFieldValue(‘AoR’);

Regards,
Gene

At 10:45 AM 5/15/2009, Fran Fabrizio wrote:

Struggling with this one. Created a custom field called “AoR” which is
a Select One Value field. Applies to Tickets. Added it to my queue.
Can see and use it on the web interface no problem.

I just want to modify my standard template for On Resolve to include a
phrase like “A ticket with AoR: SampleValue was just resolved” but I
can’t for the life of me figure out how to use the $Ticket variable to
get to the custom fields or their values.

Gene LeDuc, GSEC
Security Analyst
San Diego State University