Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Reindexing jira issues

NT
Contributor
April 25, 2018

I have a scripted field for all issue type. Value of the this scripted field for all project issues gets updated when "Group" custom field value on a certain issuetype of the project is modified.

My script work properly but when I search issues in issue navigator using scripted field then issues are not displayed.

 

I know its reindexing related issue, Can anyone help me in this?

 

 

 

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 1, 2018

The issue navigator in Jira is returning values based on the current state of Jira's indexes.  When you edit this custom field on this issue A, that single issue will be re-indexed by Jira because Jira is aware that one or more values on the issue have changed.   I think what is happening here is that Jira is unaware that these values should be updated on issues B,C,D,etc because these specific issues have not been edited directly in Jira. 

You could force Jira to reindex manually to get around this.  I believe this too will update the values for these issues.   Alternative to this would be to script out an edit/update to each issue affected by this source change and then in turn allow Jira to handle the reindex for each individual issue that has been edited.

NT
Contributor
May 2, 2018 edited

Thanks Andrew.

Since my issue count is more than 500 so my reindexing script gives timeout.

I added my reindexing script to Escalation service of script runner but it didn't help.

 

How can I script out an Edit/update of all issues in above case?

Suggest an answer

Log in or Sign up to answer