How to recalculate the value of a scriptrunner field on specific issues

Charles Albrecht October 2, 2017

We will be working on a custom scriptrunner field in Jira that performs calculations which take into account the age of the issue.

I can write JQL to identify issues which have crossed over specific age thresholds in, say, the last 24 hours.

Without forcing a spurious edit or reindexing nightly, how can I tell just the issues matching that search to recalculate their scriptrunner fields?

1 answer

0 votes
Joshua Yamdogo @ Adaptavist
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2017

Assuming you are talking about Scripted Fields, have you tried disabling the cache:

enableCache = {-> false}

That line can be added to the top of your script and may alleviate your issues with getting outdated values whenever you do a JQL query.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events