Script Runner: Wrong values shown for a few issues in search result for scripted fields (most issues work fine)


We're using a scripted field to sum the story points of child issues (with some values excluded). The scripted field works fine when executed in the Script Runner's preview. However, 5 of 48 issues have the wrong value when the issues are displayed in a search result. After updating the parent issue (by for example adding a comment), it works fine again.

Re-indexing didn't help. Am I missing something?



2 answers

it can be anything. My first guess is, there is something wrong with the script, or the field config. Provide more information if you can.

PS: don't rely on script runner to much. It is still buggy in some places.

Thanks for your quick reply. I've made a small cosmetic change to my script and saving it caused all values of the field to be correctly calculated for now. I'll have to keep an eye on this to see if it happens again in the future.

youre welcome.

When you expirience odd behaviour with script runner, try deleting the browser cache (CTRL+F5). It helped me sometimes. Obviously script runner relies on javascript which is running in the browser. Sometimes these scripts don't get updated when they are already cached.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

56 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you