Re-indexing via a serivce - Anyone? M. Doar?

Just trying to get a feel for this...

Matt Doar indicates here that a service can be run to do re-indexing. Anyone aware of an add-on that does this?

What's the level of difficulty to write one?

Goal/desire is to schedule a re-index in order to keep calcluated fields updated... ideally we'd be able to target specific projects for the re-index based on projects that have the field on one their screens.

1 answer

1 accepted

You need to put something like this script in to somefile.groovy, then set up a groovy service to run it:

Not tested... well, I ran it in the console and it was OK.

In your other conversation with me you were saying you wanted to run it nightly... it's a bit tricky to run it nightly. You can run it every 24 hours but that's not the same. I normally schedule it hourly then in the script check if the hour is 01 or whatever, and bail out if not.

Jamie, a huge help as usual, thanks a ton. You should really setup a donation mechanism on your website so those in the community can buy you a beer or coffee for your efforts.

Donation link here !

Alternatively donate a couple of quid to then we can both feel good about ourselves ;-)

Good stuff! I should have just searched!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,904 views 19 22
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