Forums

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

JIRA Background Indexing schedule

Suraj Shrivastav June 6, 2020

Hi everyone,

I would like to schedule a JIRA background indexing on daily basis as we do several changes in a day. Can anyone please let me know if there is any already script available or any other method to schedule the same.

 

Kind Regards,

Suraj Shrivastav

1 answer

1 accepted

0 votes
Answer accepted
Hana Kučerová
Community Champion
June 6, 2020
Suraj Shrivastav June 8, 2020

Hi @Hana Kučerová  Thanks for your response.

I am using RESTAPI and it's working fine to execute indexing but i have to schedule it automatically. I want indexing to be executed on daily basis in midnight. Could you please let me know if there is any way through which i can schedule CURL Command to execute.

Regards,

Suraj Shrivastav

Hana Kučerová
Community Champion
June 8, 2020

Hi @Suraj Shrivastav ,

which OS do you have? You can use Windows Task Scheduler / Linux cron to schedule the curl command.

Suraj Shrivastav June 8, 2020

HI @Hana Kučerová  I have Linux server, but i am assuming if there is anyway i can use that CURL command in any task scheduler with in JIRA or if possible from Jenkins. But that curl is not working in Jenkins Pipeline.

Please suggest.

Regards,

Suraj Shrivastav 

Hana Kučerová
Community Champion
June 9, 2020

Hi @Suraj Shrivastav ,

Jira itself doesn't provide the scheduled reindex functionality. There's a request for it, but it hasn't been solved yet.

As far as I know there are three possibilites, how to approach to this problem:

  • Add your own service and schedule it in Jira - but I didn't find any good looking code for the reindex service, but maybe you will succeed
  • Use some paid application 
  • Trigger the reindex via the REST API and schedule it outside Jira

I prefer the third option, but maybe you will use something else.

I don't know much about Jenkins Pipeline, but you should definitely be able to do the Jira REST API call from Jenkins.

Like # people like this
Suraj Shrivastav June 16, 2020

Thanks, i used REST API, would like to know if there is any notification functionality incase indexing Failed. 

Suggest an answer

Log in or Sign up to answer