[rt-users] Retrieving Requestors name in an Approval template

Oluwatomisin Ilori tomisilori at yahoo.co.uk
Tue Mar 1 07:59:31 EST 2005


Hi everyone,

I'm running RT 3.4.0 on debian linux 3.1, perl 5.8.4, apache 1.3 with mod_perl 1 and mysql 4.1.9. 

Pls, can anyone help me with this. I am working on setting approvals in RT which is working fine if i set the owner to a particular name or Id, however i want to set the approval tickets owner to the requestor and i don't know how to get the requestor's name in code. I used $Ticket->RequestorAddresses but it didn't work. It keeps setting the owner to Nobody.

Pls, all help would be appreciated. Thanks.

The aproval template i'm using is:

===Create-Ticket: CustomerCare Approval

Subject: Head of NOC Approval for {$Tickets{'TOP'}->Subject}
Depended-On-By: {$Tickets{'TOP'}->Id}
Type: approval
Queue: Approvals
Owner: {$Ticket->RequestorAddresses}
Status: Open
Content-Type: text/html
Content: {$Ticket->OwnerObj->Name} has created a ticket in the {$Ticket->QueueObj->Name} Queue. you should review and approve it, so that the work can be completed.

<br>
<br>
Please visit <a 
href="{$RT::WebURL}Approvals/Display.html?id={$Ticket->id+1}">{$RT::WebURL}Approvals/Display.html?id={$Ticket->id+1}</a> 
to approve or reject this ticket, or <a 
href="{$RT::WebURL}Approvals/">{$RT::WebURL}Approvals/</a> to 
batch-process all your pending approvals.

<br>
<br>
-------------------------------------------------------------------------
<br>
<br>
{$Transaction->Content()}

 

ENDOFCONTENT

 

 

Send instant messages to your online friends http://uk.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20050301/44d41e6e/attachment.htm>


More information about the rt-users mailing list