Open Ticket in Another Queue on Close

I’ve been reading the documentation and the Oreily book on RT and I’m
trying to figure out how to open a new ticket in the Billing queue
when a ticket in the Service queue is closed / resolved. I’m sure I
must have a syntax issue in my template but I can’t find the
documentation on those templates. I also have a Scrip on the
Services Queue to open a ticket on Resolved using this template. My
current template is:

===Create-Ticket: approve-and-post
Queue: Billing
Requestor: { $Tickets{‘TOP’}->OwnerObj->EmailAddress() }
RefersTo: { Tickets{‘TOP’}->Id() }
Content: A service ticket for { $Tickets{‘TOP’}->Requestors-

UserMembersObj-Next->EmailAddress() } has been closed regarding
{ $Tickets{‘TOP’}->Subject() }. Please approve and post the
customer’s account for { $Tickets{‘TOP’}->TimeWorked() } minutes of
labor.

Thoughts?

I’ve been reading the documentation and the Oreily book on RT and
I’m trying to figure out how to open a new ticket in the Billing
queue when a ticket in the Service queue is closed / resolved. I’m
sure I must have a syntax issue in my template but I can’t find the
documentation on those templates. I also have a Scrip on the
Services Queue to open a ticket on Resolved using this template. My
current template is:

Syntax errors would show up in your error logs
You also don’t show your actual scrip condition and scrip action which
makes it hard to know if you’re using the right ones

-kevin