[Rt-devel] TransactionBatch Scrips are not shown in Ticket/Elements/PreviewScrips

Kevin Falcone falcone at bestpractical.com
Wed Jul 6 11:22:07 EDT 2011


On Wed, Jul 06, 2011 at 06:16:26PM +0300, Timo Teräs wrote:
> On 07/06/2011 05:02 PM, Kevin Falcone wrote:
> > On Wed, Jul 06, 2011 at 04:45:17PM +0300, Timo Teräs wrote:
> >> It seems that RT 4.0.1 has a bug in it, as I don't see any previews of
> >> the scrips sending mail in TransactionBatch state.
> > 
> > This has been there long before 4.0.1
> > 
> >> Just changing to TransactionCreate fixes the preview, but it causes
> >> other problems. I'd like to include the ticket status after all the
> >> transactions in the mail.
> >>
> >> Would it be easily fixable to include TransactionBatch Scrips for the
> >> preview?
> > 
> > This is a known failure of TransactionBatch scrips, and adding them
> > to PreviewScrips is quite a lot of effort.
> 
> Would it be then possible to create identical TransactionCreate scrip
> that triggers only for the preview? E.g. have TransactionCreate scrip be
> visible in previews, and have the TransactionBatch scip do the actual work.

In theory you could Prepare but not Commit in that TransactionCreate
scrip.  Give it a shot and see what happens.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20110706/70ee3233/attachment.pgp>


More information about the rt-devel mailing list