[rt-users] Question arround scrip and custom condition on comment

Kevin Falcone falcone at bestpractical.com
Wed Jan 15 11:24:34 EST 2014


On Mon, Jan 13, 2014 at 06:24:31PM +0100, Alexandre LEPREVOST wrote:
>    I'm wondering how to do something simple. I would like to call a script not "on" comment but
>    after the comment insert in the database.

This is how Scrips work.  They happen after the transaction is created
(hence the Transaction Create stage).

>    But the script is called when I click "on comment", how about after the comment insert in the
>    database ? (with all the transaction done).

We check for applicable Scrips (by running the Conditions and the
Prepare of the Action) during display of Update.html because of the
boxes that tell you who will get email.  Your scrip action will not
actually be executed on display, but only after submission when the
transaction is created.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140115/b3271561/attachment.sig>


More information about the rt-users mailing list