How to display actual ticket ID/Number in "On create" template?

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 :frowning: here is my template :

===Create-Ticket: aproval
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! :frowning:

and go to “Approval link” here :


thansk a lot,


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?