Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Calculated Field not sorting

I created a Calculated (scripted) Number Field using JMCF called "Parent WSJF". We are using it for Features to get their parent Epic's WSJF score.


The Groovy formula is:


double parentWSJF = issue.portfolioParent.get("customfield_10234")

return parentWSJF


The field appears to be working properly. It is accurate in getting the WSJF score of the parent Epic.

However, in filters/searches, when trying to sort by that field, it does not show the numbers in order (asc or dec). Also, if I search for issues where "parentWSJF is EMPTY", issues that have a value for that field are displayed. 

I've toggled the Search template between Number range searcher and number range searcher (statistics-compatible), but that did not work.


Any ideas are appreciated!!

1 answer

0 votes

First of all, for searching and sorting to work, you need to re-index Jira, as Jira itself recommends in a message box whenever you edit a custom field.

Then, because your custom field is showing the value of a field from a different issue (here the Parent issue in the Advanced Roadmap hierarchy), you also need to configure Auto-indexing to force child issues (in the Advanced Roadmap hierarchy) to be re-indexed whenever an issue is modified. Otherwise, if the parent issue's WSJF score is modified, the index for child issues won't be updated because Jira will only update the index of the modified issue (the parent).

Thank you for your answer, @David Fischer _Innovalog_ . I have re-indexed multiple times. As well as I have set up auto-indexing as described. I still cannot seem to get the field to sort.

One reason might be that you changed between the two "search templates" - when you do that, you will need to run a foreground re-index, because Jira doesn't support changing the index field format on the fly.

I've done full re-indexes each time I changed the search template or the groovy formula. I may try updating the Plug in?

You probably have the latest version if you were able to configure auto-indexing. Odd.

I would recommend you open a support request here:

ok I've submitted a support request. Thank you for your help! @David Fischer _Innovalog_ 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,071 views 8 28
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you