Class: Upgrade

Upgrade

new Upgrade()

Upgrade REST resource for executing and querying delayed upgrades.

Properties:
Name Type Description
connector IConnector

the jira connector instance

Source:

Methods

getUpgradeResult(options, callbackopt) → {Promise.<any>}

Returns the result of the last upgrade task.

Returns javax.ws.rs.core.Response#seeOther(java.net.URI) if still running.

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
token string

token The token to use for authentication. This token is supplied on a sucessful login. If not supplied, the default token (if set) is used

callback <optional>

if supplied, called with result of api call

Source:
Returns:

result of api call

Type
Promise.<any>

runUpgradesNow(options, callbackopt) → {Promise.<any>}

Runs any pending delayed upgrade tasks. Need Admin permissions to do this.

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
token string

token The token to use for authentication. This token is supplied on a sucessful login. If not supplied, the default token (if set) is used

callback <optional>

if supplied, called with result of api call

Source:
Returns:

result of api call

Type
Promise.<any>