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

Samuel P. Howard Sam.Howard at GMxTechnologies.com
Thu Apr 27 00:59:51 EDT 2006


Hi.

I have a customer who wants to tailor his template verbiage based upon 
if the ticket is New, Updated, or Resolved ... I was originally just 
going by the $Ticket->Status in the template, but they have a funny 
habit of creating the ticket with the "open" status.  Obviously, this 
throws off the template.

I have been trying to figure out if I can access the previous value of 
the $Ticket->Status, but so far have struck out.  I've played with 
trying to get the list of transactions for the ticket, but if it's in 
there, I can't get the right magic to work.

Currently, they are maintaining 3 different scrips so they can use 3 
slightly different templates ... that seems sort of silly, and there 
should be a better way.

Any suggestions or code fragments?

Thanks!
Sam



More information about the rt-users mailing list