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

REST API for reindex -/rest/api/2/reindex/request/{requestId} - How to get the request id

Where does JIRA stores all the task id related to reindexing both Project level and application level

1 answer

0 votes

In memory, as there's no use for the request id's outside the running process.

Thanks Nic,

Then for running above api, how can i get the requestId.

 

Our requirement is, if we want to check all the Project Index activities going on currently. Then can we do that.

I'm guessing you have not managed to find the documentation as you're asking this.  

Check the descriptions of the available calls in https://docs.atlassian.com/jira/REST/server/#api/2/reindex

Hi Nic,

 

Thanks i have seen these api's, by the problem is non of them is telling me the progress of Project Reindex task.

 

For GET /rest/api/2/reindex/request/{requestId}

What shoud be the request id, from where can i get it

 

For api/2/reindex/request 

its not showing me the details of on going project reindexing

Please, read the documentation, it clearly states how to get the ids and return a progress report.

I am sorry, i couldn't find how to get request id in below link https://docs.atlassian.com/jira/REST/server/#api/2/reindex Also i suspect these API is giving information on application level reindex. If i triger a BACKGROUND reindex and hit api/2/reindex/progress with the task id provided in URL, then only I get response. But if same is being done with Project Reindex, then no response.

Hmm.  I get told about project indexing when I run it.

Hi Nick,

Can you please help by being more elaborative. What exactly you tried. 

Did you get the details about Project Reindex by  api/2/reindex/progres and passing the task id given in the url 

secure/project/IndexProjectProgress.jspa?pid=xxxxx&taskId=25329

No, the list of currently running index processes returned by the REST call for the list contains the id of any index process currently running.

I already checked that and that is what  i am trying to point out, in my case if i triger a Project Reindex and immediatly hit this REST API, i am not getting any id. 

  • When I trigger an re-index by api, I get the id back and can search for it.
  • triggering a re-index in the browser by system->re-index or project->re-index, I can guess the task-id form the browser-URI. If the browser is closed, the id is gone.
  • If I want to find out whether someone else in the system has started an re-index either for an project or the complete system, I am list.

So how can i find out whether there is an re-index running started by anyone in the system?

Like Justin Isler likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Featured Groups

Mythbusters: I'm too new to contribute to Community

Editor’s note: The Welcome Center is a great place to learn how best to navigate the Atlassian Community. “My question is SO basic. I don’t feel comfortable asking it here.” “I don’t have nearl...

217 views 8 16
View post

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