new ReindexClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/reindex'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
doReindex(opts, callbackopt) → {Promise}
Kicks off a reindex. Need Admin permissions to perform this reindex.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||||||||||||||||
callback |
<optional> |
Called when the reindex has been started. |
- Source:
Returns:
Resolved when the reindex has been started.
- Type
- Promise
getReindex(opts, callbackopt) → {Promise}
Gets 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.
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||||
callback |
<optional> |
Called when the reindex data has been retrieved. |
- Source:
Returns:
Resolved when the reindex data has been retrieved.
- Type
- Promise