[rt-users] RT4 Forward Ticket

derekross dmr234 at registrar.psu.edu
Wed Jun 15 10:37:50 EDT 2011


If I just put plain text in the Ticket Forward template, the template
executes. I was trying to do something like this however. Are params
different for forwarding of a ticket?

-----my template begin-----

Titled: {$Ticket->Subject} has been FORWARDED to you. Please take
appropriate action.

-----------------------------------------------------------------------------
TICKET INFORMATION:
Ticket Number : #{$Ticket->id}
Ticket Subject: {$Ticket->Subject}

Ticket Description: {$Transaction->Content()}
Ticket Created by: {$Ticket->CreatorObj->Name}
-----------------------------------------------------------------------------


                        Thank you,
                        {$Ticket->QueueObj->CorrespondAddress()}

-----my template end-----

More of the error log with above template:

[Wed Jun 15 14:29:31 2011] [error]: Template parsing error: Can't call
method "id" on an undefined value at template line 1.

Stack:
  [template:1]
  [/opt/rt4/sbin/../lib/RT/Template.pm:454]
  [/opt/rt4/sbin/../lib/RT/Template.pm:410]
  [/opt/rt4/sbin/../lib/RT/Template.pm:339]
  [/opt/rt4/sbin/../lib/RT/Template.pm:319]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:564]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:708]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:659]
  [/opt/rt4/share/html/Ticket/Forward.html:96]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:522]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:271]
  [/opt/rt4/share/html/autohandler:53]
(/opt/rt4/sbin/../lib/RT/Template.pm:449)
[Wed Jun 15 14:29:31 2011] [warning]: Template parsing error
(/opt/rt4/sbin/../lib/RT/Interface/Email.pm:720)
[Wed Jun 15 14:29:31 2011] [warning]: Couldn't generate email using template
'Forward Ticket' (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:723)




Thomas Sibley wrote:
> 
> On 06/15/2011 08:32 AM, derekross wrote:
>> 
>> When I try to forward a ticket with RT4, the forwarded email goes through
>> with a body of "This is forward of ticket #xxxxx" with correspondence as
>> an
>> attachment. It does not process my template at all.
>> 
>> http error log has this entry:
>> 
>> [/opt/rt4/share/html/autohandler:53]
>> (/opt/rt4/sbin/../lib/RT/Template.pm:449)
>> [Wed Jun 15 12:27:00 2011] [warning]: Template parsing error
>> (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:720)
>> [Wed Jun 15 12:27:00 2011] [warning]: Couldn't generate email using
>> template
>> 'Forward Ticket' (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:723)
> 
> As the log messages above say, there was an error parsing your template.
>  The log should have more details above or below the lines you quoted.
> In the future, providing the _full_ logs from the start is the best way
> to get a quick answer to the actual problem.
> 
> Thomas
> 
> 

-- 
View this message in context: http://old.nabble.com/RT4-Forward-Ticket-tp31851009p31852020.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.




More information about the rt-users mailing list