Try something like this:

Type:  approval
{ my $owner = $Tickets{'TOP'}->FirstCustomfieldValue('Supervisor');
$OUT = "Owner:  $owner
Content:  blah blah $owner blah blah
more blah
";}
ENDOFCONTENT

Regards,
Gene

At 02:11 PM 6/2/2007, Kevin Squire wrote:

I am still working on my TimeOff approval queue stuff (see some earlier
posts if you are that interested) and I have hit another snag.

Staff logs in to RT, using SelfService screen to submit request.  There
are 5 custom fields that they have to complete, one of which is the
Supervisor's name.  I have used the "select one" CF so that I know the
Supervisor they pick is the same as the supervisors login name for RT.

Now I need to get that value into the "OWNER" section of the template.

I have this:


  ===Create-Ticket: super-approval
  Subject:    Approval of { $Tickets{'TOP'}->Subject() }
  Depended-On-By:  TOP
  Queue:      TimeOff-Approval
  Type:       approval
  Owner:      {$Tickets{'TOP'}->FirstCustomFieldValue('Supervisor');}
  Content:
  ENDOFCONTENT

which results in an Owner of "nobody" but if I but the same bit of code
in the "CONTENT" section, it does return the supervisor's username.

So what do I have to do different to get that name into the "OWNER"
category?



--
http://gentgeen.homelinux.org

#############################################################
 Associate yourself with men of good quality if you esteem
 your own reputation; for 'tis better to be alone then in bad
 company.        - George Washington, Rules of Civility
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


--
Gene LeDuc, GSEC
Security Analyst
San Diego State University
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Reply via email to