[rt-users] Scrip access to Per-Transaction custom field values -- need a workaround !!

Alex Peters alex at peters.net
Wed Jul 30 20:40:28 EDT 2014


I wonder whether that note on the wiki page still applies to scrips that
run in batch mode, where the scrip runs after all transactions complete.

Consider trying a batch scrip (which has multiple transactions available to
it).  A batch scrip can look at all the transactions and hopefully find the
custom fields at that point.

If it does work for you, the community would probably appreciate you
updating that wiki text as well.
On 31/07/2014 6:29 am, "Al Joslin" <allen.joslin at gmail.com> wrote:

> I have per-transaction custom fields that the users can update when they
> comment (or reply)
>
> I need to roll those up to the Ticket as they are added, so I wrote a scrip
>
> But I can't seem to get it to work...  It's always one comment behind...
>
> Then I found this line in the RT wiki
>
> Quote:     Note that Per-Transaction custom fields values are not
> available to ScripActions. (RT sets these after the Scrip has been
> executed.)
> from:    http://requesttracker.wikia.com/wiki/ScripAction
>
> Damn, that means my displayed roll-up in the Ticket will forever be
> inaccurate...
>
> Are there any suggested work-arounds?
>
> thanks
> al;
>
>
>
> --
> 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/20140731/38e29587/attachment.htm>


More information about the rt-users mailing list