Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get reindex information

Returns information on the system reindexes. If a reindex is currently taking place then information about this reindex is returned. If there is no active index task, then returns information about the latest reindex task run, otherwise returns a 404 indicating that no reindex has taken place.

GET/api/2/reindex
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Query parameters
taskIdinteger<int64>

The id of an indexing task you wish to obtain details on. If omitted, then defaults to the standard behaviour and returns information on the active reindex task, or the last task to run if no reindex is taking place.

Responses
200

Returns a representation of the progress of the re-index operation.

currentProgressinteger<int64>
currentSubTaskstring
finishTimestring<date-time>
progressUrlstring
startTimestring<date-time>
submittedTimestring<date-time>
successboolean
typestring
Allowed:FOREGROUNDBACKGROUNDBACKGROUND_PREFFEREDBACKGROUND_PREFERRED
404

Returned if there is no re-indexing task found

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/reindex' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "currentProgress": 0,
  "currentSubTask": "Currently reindexing Change History",
  "finishTime": "2019-08-24T14:15:22Z",
  "progressUrl": "http://localhost:8080/jira",
  "startTime": "2019-08-24T14:15:22Z",
  "submittedTime": "2019-08-24T14:15:22Z",
  "success": true,
  "type": "FOREGROUND"
}

Was this page helpful?