Action on Leaving Queue?

I’m trying to set up a ScripAction to run on Queue change. I have a
’pending’ queue, and I would like to send an e-mail when a ticket
leaves this queue. I’ve tried using the condition "On Queue Change,"
however this seems to run upon entering the queue, so I’d have to
either have a global scrip, or a scrip for each queue it may enter.

I’ve tried using both TransactionCreate and TransactionBatch as the
stage, but it doesn’t seem to change anything. What is the difference
between these two stages? These Wiki pages don’t seem to have been
written yet :wink:

I’m using RT 3.2.0

Any thoughts?