[rt-users] Need help referencing custom fields in CreateTicket template

davidturnau daveturnau at hotmail.com
Thu Aug 23 19:20:25 EDT 2007

This is no longer a custom fields issue. Everything works fine with text but
I can't call perl in the template at all (it seems)

I have changed the subject line to:
 Subject: {$Ticket->id} 
Subject: {$Ticket->id()} 

and got the following error in rt.log each time:

Subject: Can't call method "id" on an undefined value at template line 2.


davidturnau wrote:
> I have a Create Ticket scrip that works until I try to reference a custom
> field. The template looks like this:
> ===Create-Ticket: hardware
> Queue: Hardware
> Subject: {$Ticket->FirstCustomFieldValue('Product');} 
> The Custom Field "Product" exists and is applied to queue that the scrip
> is running in. I have set the 'see', 'modify' and 'admin' rights for
> everyone. 
> The worst part is that this was working fine yesterday and today it is
> failing. I have tried many options to set this value that I have found on
> this mailing list and I still can't get it to work.
> My RT version is 3.4.4
> My server is running Ubuntu 6.10
> The syslog error is:
> Aug 23 13:08:29 support-server RT: Exiting subroutine via next at
> /usr/share/request-tracker3.4/lib/RT/Action/CreateTickets.pm line 980.
> (/usr/share/request-tracker3.4/lib/RT.pm:287)
> Any suggestions would be greatly appreciated.

View this message in context: http://www.nabble.com/Need-help-referencing-custom-fields-in-CreateTicket-template-tf4320089.html#a12303840
Sent from the Request Tracker - User mailing list archive at Nabble.com.

More information about the rt-users mailing list