new VersionClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/version'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
createRemoteLink(opts, callbackopt) → {Promise}
Create a remote version link via POST. The link's global id will be taken from the JSON payload if provided; otherwise, it will be generated.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
|||||||||||
callback |
callback |
<optional> |
Called when the remote link has been created. |
- Source:
Returns:
Resolved when the remote link has been created.
- Type
- Promise
createVersion(opts, callbackopt) → {Promise}
Creates a version
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | Details about a project version. Properties
|
|||||||||||||||||||||||||||||||||||||||||||||
callback |
callback |
<optional> |
Called when the version has been created. |
- Deprecated:
- @param {string} [opts.project] Deprecated. Use projectId.
- Source:
Returns:
Resolved when the version has been created.
- Type
- Promise
deleteAllRemoteLinks(opts, callbackopt) → {Promise}
Delete all remote version links for a given version id.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
|||||||
callback |
callback |
<optional> |
Called when the version is deleted. |
- Source:
Returns:
Resolved when the version is deleted.
- Type
- Promise
deleteRemoteLink(opts, callbackopt) → {Promise}
Delete a remote version link.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
|||||||||||
callback |
callback |
<optional> |
Called when the link has been deleted. |
- Source:
Returns:
Resolved when the link has been deleted.
- Type
- Promise
deleteVersion(opts, callbackopt) → {Promise}
Delete a project version.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
|||||||
callback |
callback |
<optional> |
Called when the version is deleted. |
- Source:
Returns:
Resolved when the version is deleted.
- Type
- Promise
editVersion(opts, callbackopt) → {Promise}
Modify an existing version; any omitted fields will be ignored.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to Jira. Properties
|
||||||||||
callback |
callback |
<optional> |
Called when the version has been modified. |
- Source:
Returns:
Resolved when the version has been modified.
- Type
- Promise
getAllVersions(opts, callbackopt) → {Promise}
Get a all versions from specific board.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
|||||||
callback |
callback |
<optional> |
Called when all versions are retrieved. |
- Source:
Returns:
Resolved when all versions are retrieved.
- Type
- Promise
getGlobalRemoteLink(opts, callbackopt) → {Promise}
Returns the remote version links for a given global id.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||
callback |
callback |
<optional> |
Called when the remote link is returned. |
- Source:
Returns:
Resolved when the remote link is returned.
- Type
- Promise
getRelatedIssueCounts(opts, callbackopt) → {Promise}
Get a bean containing the number of fixed in and affected issues for the given version.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||
callback |
callback |
<optional> |
Called when the count has been retrieved. |
- Source:
Returns:
Resolved when the count has been retrieved.
- Type
- Promise
getRemoteLinks(opts, callbackopt) → {Promise}
Get the remote version links associated with the given version id.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||
callback |
callback |
<optional> |
Called when the links have been retrieved. |
- Source:
Returns:
Resolved when the links have been retrieved.
- Type
- Promise
getRemoteLinks(opts, callbackopt) → {Promise}
Get a REST sub-resource representing a remote version link.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
|||||||||||
callback |
callback |
<optional> |
Called when the link has been retrieved. |
- Source:
Returns:
Resolved when the link has been retrieved.
- Type
- Promise
getUnresolvedIssueCount(opts, callbackopt) → {Promise}
Get the number of unresolved issues for the given version
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||
callback |
callback |
<optional> |
Called when the count has been retrieved. |
- Source:
Returns:
Resolved when the count has been retrieved.
- Type
- Promise
getVersion(opts, callbackopt) → {Promise}
Get a project version.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
|||||||
callback |
callback |
<optional> |
Called when the version is retrieved. |
- Source:
Returns:
Resolved when the version is retrieved.
- Type
- Promise
moveVersion(opts, callbackopt) → {Promise}
Modify a version's sequence within a project. The move version bean has 2 alternative field value pairs (opts.position or opts.after). One and only one of these two must be provided.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the version has been moved. |
- Source:
Returns:
Resolved when the version has been moved.
- Type
- Promise