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