Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you