[rt-users] Duplicate notifications on merge ticket?
icydee
rt-users at iandocherty.com
Fri Jun 26 15:52:29 EDT 2009
Justin
Have a look at the difference between TransactionCreate and
TransactionBatch for your scrip. I think you want TransactionBatch.
By default RT does not enable the TransactionBatch stage, you have to
turn it on with the
Set($useTransactionBatch, 1);
in your config file.
Regards
Ian
Justin Pratt wrote:
> RT 3.8.1 - I am trying to write a scrip that sends notification to
> adminCCs when a ticket is merged. My user-defined condition is:
>
> my $txn = $self->TransactionObj;
> return 0 unless $txn->Type =~ /^AddLink$/i;
> return 0 unless $txn->Field =~ /^MergedInto$/i;
> ... etc etc ...
> return 1
>
> However it seems that merging a ticket creates two of these
> transactions, and my notifications are sent twice. Suggestions?
>
> Thanks,
> Justin
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
>
>
More information about the rt-users
mailing list