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
Hi @Suraj Shrivastav ,
I think the most used possibility is to trigger a re-index via the REST API:
There are also a few posts about this topic already, which include discussions, whether this is a good idea to perform it as a scheduled job, e.g.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Suraj Shrivastav ,
which OS do you have? You can use Windows Task Scheduler / Linux cron to schedule the curl command.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, i used REST API, would like to know if there is any notification functionality incase indexing Failed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.