Creation of a ticket on resolve

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a script that I have written that will upon resolving a ticket open a new
ticket in our “Accounting” queue for invoicing purposes. In this, I would like
to add the Owner of the ticket (Name preferably, but their login ID is
suitable). However, I cannot figure out how to do this. Everything works fine
but I cannot get the Owner information. What is the best way to do this. (See
sample of template below).

===Create-Ticket: PaymentRequest
Queue: Accounting
RefersTo: TOP
Content:

The ticket {$Ticket->id} has been closed and is marked as Billable. Please
create a payment request for the Ticket Owner:

  Owner: {$Tickets('TOP'}->Owner}

Time Worked: {$Ticket->TimeWorked} minutes

ENDOFCONTENT


David Schnardthorst
URL: http://www.wavesco.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDVpYF0I5vtVF88i0RAgv2AJ95KYV4sZnOlmsA+oZ39JTO+3648ACfQtYH
mZaO6ED+rCgXGiyxs0vHHWk=
=3AsZ
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a script that I have written that will upon resolving a ticket open a new
ticket in our “Accounting” queue for invoicing purposes. In this, I would like
to add the Owner of the ticket (Name preferably, but their login ID is
suitable). However, I cannot figure out how to do this. Everything works fine
but I cannot get the Owner information. What is the best way to do this. (See
sample of template below).

===Create-Ticket: PaymentRequest
Subject: Payables Request for {$Tickets{‘TOP’}->Subject}
Queue: Accounting
RefersTo: TOP
Content:

The ticket {$Ticket->id} has been closed and is marked as Billable. Please
create a payment request for the Ticket Owner:

  Owner: {$Tickets('TOP'}->Owner}
  1. wrong braces
  2. try {$Tickets{‘TOP’}->OwnerObj->Name}

Time Worked: {$Ticket->TimeWorked} minutes

ENDOFCONTENT


David Schnardthorst
URL: http://www.wavesco.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDVpYF0I5vtVF88i0RAgv2AJ95KYV4sZnOlmsA+oZ39JTO+3648ACfQtYH
mZaO6ED+rCgXGiyxs0vHHWk=
=3AsZ
-----END PGP SIGNATURE-----


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

Best regards, Ruslan.