Constructor
new VersionClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/version'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
createRemoteLink(opts, callback)
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 | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||||
callback |
Called when the remote link has been created. |
- Source:
createVersion(opts, callback)
Modify an existing version; any omitted fields will be ignored.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to Jira. Properties
|
|||||||||
callback |
Called when the version has been modified. |
- Source:
createVersion(opts, callback)
Creates a version
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to Jira. Properties
|
||||||
callback |
Called when the version has been created. |
- Source:
deleteAllRemoteLinks(opts, callback)
Delete all remote version links for a given version id.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
||||||
callback |
Called when the version is deleted. |
- Source:
deleteRemoteLink(opts, callback)
Delete a remote version link.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||||
callback |
Called when the link has been deleted. |
- Source:
deleteVersion(opts, callback)
Delete a project version.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
||||||
callback |
Called when the version is deleted. |
- Source:
getGlobalRemoteLink(opts, callback)
Returns the remote version links for a given global id.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
|||||||
callback |
Called when the remote link is returned. |
- Source:
getRelatedIssueCounts(opts, callback)
Get a bean containing the number of fixed in and affected issues for the given version.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
|||||||
callback |
Called when the count has been retrieved. |
- Source:
getRemoteLinks(opts, callback)
Get the remote version links associated with the given version id.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
|||||||
callback |
Called when the links have been retrieved. |
- Source:
getRemoteLinks(opts, callback)
Get a REST sub-resource representing a remote version link.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||||
callback |
Called when the link has been retrieved. |
- Source:
getUnresolvedIssueCount(opts, callback)
Get the number of unresolved issues for the given version
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
|||||||
callback |
Called when the count has been retrieved. |
- Source:
getVersion(opts, callback)
Get a project version.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
||||||
callback |
Called when the version is retrieved. |
- Source:
moveVersion(opts, callback)
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 | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
||||||||||||||||
callback |
Called when the version has been moved. |
- Source: