I have created a scripted field which can display the RAG status of an issue and when I am trying to apply JQL query to filter RAG Status under "view all issues and filters" option, I am not able to get the RAG status in proper order
Example - project="xyz" AND RAG_Status="Green"
I expect only issues with status as GREEN, will be displayed as the result of query. But now I am able to view "RED" status also as the result.
I cross checked the script but there is no issue in it.
Can you please provide a solution for the above mentioned issue.
Kindly make sure that your scripted field uses a Search template and try to reindex your project.
Hi Alexey,
Thanks for the above response, I have already added "Free text Searcher" under Search Template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you reindex your project?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, when I re-index filter will be working fine. But next day again I will face the same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It should not happen next day again. When you add a custom field or change the search template, it is necessary to make a reindex. Jira even warns you about it.
After reindexing, indexes will be updated upon issue updates. If your scripted field depends on the values of custom fields of the same issue, then everything will be fine. If your scripted field depends on some other data, then you can have a problem. You can read more in the JQL Searches in Script Fields part of this document:
https://scriptrunner.adaptavist.com/5.0.4/jira/scripted-fields.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for the suggestion Alexey. I was actually fetching data from different issue types. So, it would be causing issue and i am re-framing the scripts now. Please let me know if you have any suggestions on fetching data from different issue types.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeevan,
you need to check the searcher associated to your field. Probably it is not selected.
In order to that, you need to perform the following steps :
It shoud fix your issue.
Ciao,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabio,
Thanks for the above response, I have already added "Free text Searcher" under Search Template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.