Automatic jira reindex

Hey  guys,

It is possible to schedule a JIRA reindex or write a script to do this?

Thanks!

1 answer

1 accepted

Mihai,

First of all perform reindex only when you have to. There is no need to do it regularly.

You can trigger reindex from REST API: https://docs.atlassian.com/jira/REST/server/#api/2/reindex-reindex

-Ravi

It's always worth questioning why you want to do this.  There are some cases where it makes sense, but if you're doing it because your index is regularly going wrong, then this is absolutely the wrong thing to do. 

There's a phrase "plastering over the cracks" - when your house is structurally unsound, cracks appear in the plaster as it gradually falls apart.  If you "plaster over the cracks", your house might look ok to the eye, but you're hiding the fact that it's going to fall down soon.

So, if you're doing this because you're getting indexing errors a lot, you need to fix that, not pretend you don't have a massive problem.

@Ravi Sagar [Author - Mastering JIRA 7] Thanks for the answer!

@Nic Brough [Adaptavist] Yes, I agree with you, but I need to reindex after working hours because I make a lot of change during the day (fields, addons, etc) and I don't wanna manual reindex every time.

Ok, but that's just a case of clicking it when you know you've finished your changes, exactly as Ravi said.  The REST call does that

You do not need or want to do it regularly.

 

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 Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

685 views 6 13
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