Jira Script fields are not getting indexed.


I am have created a plugin that will capture an Event called on Post function. Inside that plugin, I am reindexing issues. But unfortunately, the script fields are not getting indexed, rather they lose indexes.

The code for indexing is as follows:


for(Issue issue:issueList)

//MutableIssue issueObj= issueManager.getIssueObject(issue.getKey());

boolean wasIndexing = ImportUtils.isIndexIssues();

catch (IndexException e)



1 answer

Hi Sunil,

Is this issue due to the Script fields returning cached values.

If so you can force values to dynamically be refreshed each time a field is called by adding the line enableCache = {-> false} to the top of your script.

Further information on caching for Scripted Fields can be found here.

I hope this helps.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,234 views 5 10
Read article

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