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

Hi,

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?

Regards,

Sonja

2 answers

This widget could not be displayed.

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.

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

130 views 1 3
Join discussion

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