[rt-users] Detecting "new" ticket in a template

Rick Russell rickr at rice.edu
Thu Apr 27 14:54:58 EDT 2006



Samuel P. Howard wrote:
> Any suggestions or code fragments?

Template code:


Subject: {$Ticket->Subject}


{
if ( ($Ticket->Status eq 'new') || ($Ticket->Status eq 'open') ||
($Ticket->Status eq 'stalled') )
  {
$OUT .=
"Thank you for submitting a request regarding

blah blah blah yada yada yada

";
  }
elsif ($Ticket->Status eq 'resolved')
  {
$OUT .=
"Thank you for contacting the Information Technology Help Desk.
For record-keeping purposes, we have assigned a ticket number
to your request

blah blah blah yada yada yada

";
  }
}

You may review this request at

  {$RT::WebURL}SelfService/Display.html?id={$Ticket->id}


                        Thank you,
                        Rice University, Information Technology
                        {$Ticket->QueueObj->CorrespondAddress()}
-------------------------------------------------------------------------
{$Transaction->Content()}


end code!

Rick R.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rickr.vcf
Type: text/x-vcard
Size: 182 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20060427/1380944d/attachment.vcf>


More information about the rt-users mailing list