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

Reindex individual issues

Reindexes one or more individual issues. Indexing is performed synchronously - the call returns when indexing of the issues has completed or a failure occurs.

POST/api/2/reindex/issue
Authorization
AuthorizationBasic auth · headerrequired

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

Query parameters
issueIdstring[]

The IDs or keys of one or more issues to reindex.

indexChangeHistoryboolean

Indicates that changeHistory should also be reindexed.

default: false
indexWorklogsboolean

Indicates that worklogs should also be reindexed.

default: false
indexCommentsboolean

Indicates that comments should also be reindexed.

default: false
Responses
200

Returns response indicating reindex time.

currentProgressinteger<int64>
currentSubTaskstring
finishTimestring<date-time>
progressUrlstring
startTimestring<date-time>
submittedTimestring<date-time>
successboolean
typestring
Allowed:FOREGROUNDBACKGROUNDBACKGROUND_PREFFEREDBACKGROUND_PREFERRED
Try it
Server
Authorization
Parameters
Request
curl -X POST 'http://jira.example.com/rest/api/2/reindex/issue' \
  -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?