[rt-users] Duplicate notifications on merge ticket?

Justin Pratt justin at myri.com
Fri Jun 26 15:21:38 EDT 2009


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



More information about the rt-users mailing list