How can you perform automatic/manual Re-Indexing on Jira (Software) server?

bibin.koshy October 25, 2019

Hi Community,

Might be a silly question but i am quite new to Jira. Would there be a command to enable re-indexing on Jira using Linux terminal? I am removing the whole of index directory and got to learn that when you re-boot Jira instance the re-indexing is not automatically done? 

Kind Regards,

--Bibin

1 answer

0 votes
robert Mugabuhamye
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2019

hello @bibin.koshy .
you should be able to do as indicated on this doc :

https://confluence.atlassian.com/adminjiraserver073/search-indexing-861253852.html

bibin.koshy October 28, 2019

Hi @robert Mugabuhamye ,

Thank you for the doc. But is there a code that could be used to automatically enable re-indexing rather than manually going through the GUI ?

Thanks,

--Bibin

bibin.koshy October 29, 2019

Hi @robert Mugabuhamye 

See this doc.

https://confluence.atlassian.com/jirakb/reindex-jira-server-using-rest-api-via-curl-command-663617587.html?_ga=2.225356698.1460643556.1572270390-554649307.1572270390

I would like to use this API call specified on this doc to re-index jira server through linux terminal.

The only issue is that i am getting "authentication failure" when i try and get this working. I just use root without any password, so stuck on how to run this...

curl -u root:password -X POST $JIRAURL/rest/api/2/reindex?type=FOREGROUND

Kind regards,

--Bibin

robert Mugabuhamye
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 29, 2019

hello @bibin.koshy .
i just tried the command using postman (basic authentication) and in command line both worked

curl -u robert.mugabuhamye:PASSWORD -X POST "http://localhost:8080/rest/api/2/reindex"

make sure the user/password you are using is jira administrators.

Suggest an answer

Log in or Sign up to answer