How to reindex once a week

Joe Harmon August 9, 2021

I have some a plugin that I use to perform calculations on fields.  I use the JMCF plugin to do this.  I essentially do a calculation between dates when a date is changed over a one week period and show the number of days that it slipped and the projected revenue change.  Since it is based on a weekly value, it resets that calculation each week.  I also sort by these fields.  However, the sort seems to hold on to the history even when it is reset.  So my sort will look funny because it detects that the field has changed in the history and I get blank values in the sorting because of the previous history.  Only way I can get rid of these is to reindex.  I have a weekly meeting where I review these with the teams and have to kick off a reindex.  I know jira doesn't have a scheduled reindex built in, but I see in scriptrunner that you can run a reindex against a particular project.  Is there a way to set this up as a job so that it is scheduled.

0 answers

Suggest an answer

Log in or Sign up to answer