[rt-users] how to display actual ticket ID/Number in "On create" template?

Remy Berrebi berrebi at yahoo-inc.com
Fri Jan 9 11:33:41 EST 2009


hi,
i'm using the Approval example on wiki and it's fine, but i want that 
approval user receive an email with direct URL of ticket created after 
approval request submission...

and i don't find how to do it :-( here is my  template :

===Create-Ticket: aproval
Subject: Approval needed for : {$Tickets{'TOP'}->Subject}
Depended-On-By: TOP
Queue: cma
Type: approval
Owner: doe
Content: Hi,

a request been created :

<URL: {$RT::WebURL}Ticket/Display.html?id={$Tickets{'TOP'}->id} >

with subject : "{$Tickets{'TOP'}->Subject}"


to approve this CMR you need to TAKE and OPEN the following Ticket :

<URL: {$RT::WebURL}Ticket/Display.html?id={$Ticket->id} >   <========= 
this not work! :-(

and go to "Approval link" here :

    {$RT::WebURL}Approvals/


thansk a lot,

regards,
ENDOFCONTENT



on apache error log i can read :

Ticket creation failed: Can't call method "id" on an undefined value at 
template line 20.


ticket submited is not see as approval pending and approval ticket is 
not created because of this error in log ...

please does anybody can help?



More information about the rt-users mailing list