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

Emmanuel Lacour elacour at easter-eggs.com
Wed Jan 15 11:01:06 EST 2014


On Mon, Jan 13, 2014 at 06:24:31PM +0100, Alexandre LEPREVOST wrote:
>    Hello everyone
> 
>    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.
> 
>    Actually this is my condition :
>    return 0 unless $self->TransactionObj->Type eq "Comment";
>    return 1;
> 
>    But the script is called when I click "on comment", how about after the
>    comment insert in the database ? (with all the transaction done).
> 


well, when you create a scrip with "On comment" as condition, it is not
called when you click "comment", but when you submit the comment (or
when a comment is received on the comment queue email address). And
there you have access to all the data provided in this "transaction".

Also have a look here:

http://requesttracker.wikia.com/wiki/TransactionBatchStage

What do you wan't to achieve, why do you want to execute after DB
insertion?



-- 
Easter-eggs                              Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37    -   Fax: +33 (0) 1 43 35 00 76
mailto:elacour at easter-eggs.com  -   http://www.easter-eggs.com



More information about the rt-users mailing list