On Thu, Sep 29, 2011 at 06:39:03PM -0300, Daniel Silveira wrote:
>    Hi,
> 
>    I have the exact same problem with a very simple test-only scrip:
> 
>    Condition:  on a transaction
>    Action: user defined
>    Stage: TransactionBatch
> 
>    Action code:
>    $RT::Logger->info($self->TransactionObj->Id);

There are two action boxes.

Custom action preparation code:
Custom action cleanup code:

Which one did you put the log in.
What did you put in the other one.

-kevin

>    Every transaction generated fires twice this scrip. If I chage the stage 
> to TransactionCreate,
>    then it works.
> 
>    Logfile:
>    [Thu Sep 29 19:12:47 2011] [info]: 323732 ((eval 1558):1)
>    [Thu Sep 29 19:12:47 2011] [info]: 323732 ((eval 1566):1)
>    [Thu Sep 29 19:12:55 2011] [info]: 323733 ((eval 1582):1)
>    [Thu Sep 29 19:12:55 2011] [info]: 323733 ((eval 1590):1)
>    Thank you.
>    Daniel Silveira
> 
>  On Thu, Sep 29, 2011 at 11:10:20AM -0400, Xin, Qiao wrote:
>  > Hi,
>  >
>  > I have a scrip to to check when the ticket status changes. If I put it as 
> TransactionBatch mode,
>  > each time I change the ticket status, the scrip got fired twice and there 
> will be dupllicated emails
>  > sent out. I had to use TransactionBatch, since we want an email 
> notification to be sent out when
>  > either
>  > 1.  the user use reply and modify the ticket status
>  > 2. modify the ticket status
>  >
>  > TransactionBatch works fine when user reply and modify ticket status but 
> got duplicated emails when
>  > just change ticket status.
> 
>  Please show your scrip configuration
> 
>  -kevin

> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  San Francisco, CA, USA ? October 18 & 19, 2011
> *  Washington DC, USA ? October 31 & November 1, 2011
> *  Melbourne VIC, Australia ? November 28 & 29, 2011
> *  Barcelona, Spain ? November 28 & 29, 2011

Attachment: pgpKUGjUDevwD.pgp
Description: PGP signature

--------
RT Training Sessions (http://bestpractical.com/services/training.html)
*  San Francisco, CA, USA — October 18 & 19, 2011
*  Washington DC, USA — October 31 & November 1, 2011
*  Melbourne VIC, Australia — November 28 & 29, 2011
*  Barcelona, Spain — November 28 & 29, 2011

Reply via email to