[rt-users] Catch all ticket changes in one scrip
Alex Peters
alex at peters.net
Tue Sep 16 19:38:16 EDT 2014
TransactionBatch scrips always run after TransactionCreate scrips.
If it's running three times, it's quite possibly still applied to a queue
(or globally) in Create mode.
I test whether a scrip is running in batch mode using:
if (my @txns = @{ $self->TicketObj->TransactionBatch }) {
# batch mode; iterate over @txns
...
}
else {
# create mode
...
}
On 17/09/2014 3:09 am, "andriusk" <andrius.kulbis at gmail.com> wrote:
> How should I make my TransactionBatch scrip run after all changes inducing
> scrip? Is it enought if it is the only scrip in batch mode? Because now I
> get this batch scrip run after every different type transaction (3 changes
> -
> status, subject, customfield - 3 times ran scrip in batch mode. Also I dont
> think that checking TicketObj->RanTransactionBatch is correct to determine
> if the scrip done its job in scrip with batch mode?
>
>
>
> --
> View this message in context:
> http://requesttracker.8502.n7.nabble.com/Catch-all-ticket-changes-in-one-scrip-tp58372p58557.html
> Sent from the Request Tracker - User mailing list archive at Nabble.com.
> --
> RT Training - Boston, September 9-10
> http://bestpractical.com/training
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140917/717e5adc/attachment.htm>
More information about the rt-users
mailing list