I have an issue with ScriptRunner’s scripted fields. I have one field that is a text field. It check the status of specific issues linked to it, does some basic crunching and reports a result in that text scripted field.
I am able to do a JQL search based on that scripted field’s value. However, if I change the status of one of the linked, it changes the value of the scripted field correctly, but I am not able to find it with the new value, oly the old one, unless I reindex all the issues.
example:
My scripted field value is “ALL DONE”
I search issues with the JQL: “My script” = “ALL DONE”
It returns my issue with the ALL DONE value. Good!
I change something, the scripted field’s value changes to “Oh oh!”.
I search issues with the JQL: “My script” = “Oh oh!”
It find nothing…
I search issues with the JQL: “My script” = “ALL DONE”
It return my issue from before, with the scripted field’s value “Oh oh!”…
I tried adding enableCache = {-> false} to my scripted field, but it didn’t do anything…