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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

182 views 1 17
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