[rt-users] Little help with template

2009-03-05 Thread Jim Tambling
Hi, 
 
I should state I have no knowledge of Perl beforehand. I have a scrip
that notifies the requestor when an approval ticket has been approved.
This is the template;
 
Subject: Ticket Approved: {$Ticket-Subject}
 
Greetings,
 
Your ticket has been approved by { eval { $Approval-OwnerObj-Name } }.

Other approvals may be pending.
 
 
The requestor receives the email as shown below;
 
 
Greetings,
 
Your ticket has been approved by .
Other approvals may be pending.

 
 
Notice the distinct lack of the approver's name.
 
 
Thnaks
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Little help with template

2009-03-05 Thread Potla, Ashish Bassaliel
Is the ticket owner supposed to be the approver?

In that case use {eva{$self-OwnerObj-Name}}

-Ashishl

From: rt-users-boun...@lists.bestpractical.com 
[rt-users-boun...@lists.bestpractical.com] On Behalf Of Jim Tambling 
[jim.tambl...@datatote.co.uk]
Sent: Thursday, March 05, 2009 6:13 PM
To: rt-us...@bestpractical.com
Subject: [rt-users] Little help with template

Hi,

I should state I have no knowledge of Perl beforehand. I have a scrip that 
notifies the requestor when an approval ticket has been approved. This is the 
template;

Subject: Ticket Approved: {$Ticket-Subject}

Greetings,

Your ticket has been approved by { eval { $Approval-OwnerObj-Name } }.
Other approvals may be pending.


The requestor receives the email as shown below;


Greetings,

Your ticket has been approved by .
Other approvals may be pending.


Notice the distinct lack of the approver's name.


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

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com