I have been trying to do a script that sends a reply template if Status is changed, to me this make sence using Trigger - Request Changed status but when I use
if ((getParserVariable("ticket.new.ticketStatus").toInteger() == 2) && (getParserVariable("ticket.old.ticketStatus").toInteger() == 7))
// Do things
ticket.old.ticketStatus will be empty when I trace the script.
If I try this under Saving a request they do contain values.
What is the differences between the triggers and what you can access, how can I easily see what values I can use?
Apprecieate an explanation or link where I can read up on this.