Script runner -- question about built-in reindex script

Hi Jira gurus,

Do to some plugin issues, our Jira instance won't allow background indexing -- it only allows a locked-down re-index. But this can take 3-5 hours on our environment, and I would very much like to avoid that.

I know script runner has the reindex built in script -- I've used it for small changes before. But is there a way to use this to perform a full background reindex, so the "lock" is removed?

Anyone experiment with this?

BTW -- I've done the DB checks -- there is no discrepancy between jiraaction/jiraissue field and jiraissue/ID field.

2 answers

0 vote

Partly out of curiosity, and partly because it should fix this, what is stopping background indexing? What are the plugins that break it?

I *think* it was caused by a scripted-field. Found a field that was using an incorrect Search Template -- this honestly happened several months ago, so I can't verify. But I am fairly sure that was what happened.

So what happens when you try a background re-index?

I'm pretty sure that if you use the script runner to do a back-ground re-index, it's going to fail anyway, as all it will really do is run the same as what goes off when you click the re-index in there. My instinct is that you need to fix the background re-index

It doesn't even give you the option. You can only do the full locked re-index.

However, I am able to run the script runner built-in reindex just fine.

I guess Ideally, I wish there was a way to remove the "lock" (for lack of a better term) preventing me from doing the background re-index.

If I have to bite the bullet, and schedule a 4 hour maintenance for a re-index, that's what I'll do.. but I am so not looking forward to explaining that to management. :)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

71 views 0 11
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