new IssueClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/issue' and '/rest/agile/1.0/issue'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
(static) addAttachment(opts, callbackopt) → {Promise}
Add an attachments to an issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||
callback |
function |
<optional> |
Called when the attachment has been attached. |
- Source:
Returns:
Resolved when the attachment has been attached.
- Type
- Promise
addComment(opts, callbackopt) → {Promise}
Add a comment to an issue
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||||||||||
callback |
callback |
<optional> |
Called when data has been retrieved |
- Source:
Returns:
Resolved when data has been retrieved
- Type
- Promise
addWatcher(opts, callbackopt) → {Promise}
Adds a user to an issue's watcher list.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called after the watcher is added. |
- Source:
Returns:
Resolved after the watcher is added.
- Type
- Promise
addWorkLog(opts, callbackopt) → {Promise}
Adds a new worklog entry to an issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||||||
callback |
<optional> |
Called after the worklog is added. |
- Source:
Returns:
Resolved after the worklog is added.
- Type
- Promise
assignIssue(opts, callbackopt) → {Promise}
Assigns an issue to a user. You can use this resource to assign issues when the user submitting the request has the assign permission but not the edit issue permission. If the name is "-1" automatic assignee is used. A null name will remove the assignee. or You can use accountId of the user whom to assign the issue. See https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | use assignee name or accountId to assign the issue Properties
|
|||||||||||||||||||||
callback |
<optional> |
Called when the issue has been assigned. |
- Source:
Returns:
Resolved when the issue has been assigned.
- Type
- Promise
bulkCreate(issues, callbackopt) → {Promise}
Creates issues or sub-tasks from a JSON representation.
Creates many issues in one bulk operation.
Creating a sub-task is similar to creating a regular issue. More details can be found in createIssue section: IssueResource#createIssue(IssueUpdateBean)}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
issues |
|||
callback |
<optional> |
Called when the issues have been created. |
- Source:
Returns:
Resolved when the issues have been created.
- Type
- Promise
createIssue(issue, callbackopt) → {Promise}
Creates an issue or a sub-task from a JSON representation.
The fields that can be set on create, in either the fields parameter or the update parameter can be determined using the /rest/api/2/issue/createmeta resource. If a field is not configured to appear on the create screen, then it will not be in the createmeta, and a field validation error will occur if it is submitted.
Creating a sub-task is similar to creating a regular issue, with two important differences:
- the issueType field must correspond to a sub-task issue type (you can use /issue/createmeta to discover sub-task issue types), and
- you must provide a parent field in the issue create request containing the id or key of the parent issue.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
issue |
Object | The issue data in the form of POST body to the JIRA API. See https://docs.atlassian.com/jira/REST/latest/#d2e398 |
|
callback |
<optional> |
Called when the issue has been created. |
- Source:
Returns:
Resolved when the issue has been created.
- Type
- Promise
createRemoteLink(opts, callbackopt) → {Promise}
Creates (or updates) a remote issue link from a JSON representation. If a globalId is provided and a remote issue link exists with that globalId, the remote issue link is updated. Otherwise, the remote issue link is created.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the remote links are retrieved. |
- Source:
Returns:
Resolved when the remote links are retrieved.
- Type
- Promise
deleteComment(opts, callbackopt) → {Promise}
Delete an existing comment.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the comment is retrieved. |
- Source:
Returns:
Resolved when the comment is retrieved.
- Type
- Promise
deleteIssue(opts, callbackopt) → {Promise}
Delete an issue. If the issue has subtasks you must set the parameter deleteSubtasks=true to delete the issue. You cannot delete an issue without its subtasks also being deleted.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when data has been retrieved |
- Source:
Returns:
Resolved when data has been retrieved
- Type
- Promise
deleteRemoteLink(opts, callbackopt) → {Promise}
Delete the remote issue link with the given global id on the issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the remote links are retrieved. |
- Source:
Returns:
Resolved when the remote links are retrieved.
- Type
- Promise
deleteRemoteLinkById(opts, callbackopt) → {Promise}
Get the remote issue link with the given id on the issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the remote links are retrieved. |
- Source:
Returns:
Resolved when the remote links are retrieved.
- Type
- Promise
deleteWorkLog(opts, callbackopt) → {Promise}
Deletes an existing worklog entry
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||||||||||
callback |
<optional> |
Called after the work log is deleted. |
- Source:
Returns:
Resolved after the work log is deleted.
- Type
- Promise
editComment(opts, callbackopt) → {Promise}
Updates an existing comment using its JSON representation.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||
callback |
<optional> |
Called when data has been retrieved |
- Source:
Returns:
Resolved when data has been retrieved
- Type
- Promise
editIssue(opts, callbackopt) → {Promise}
Edits an issue from a JSON representation.
The issue can either be updated by setting explicit the field value(s) or by using an operation to change the field value.
The fields that can be updated, in either the fields parameter or the update parameter, can be determined using the IssueClient#getEditMetadata method. If a field is not configured to appear on the edit screen, then it will not be in the editmeta, and a field validation error will occur if it is submitted.
Specifying a "field_id": field_value in the "fields" is a shorthand for a "set" operation in the "update" section. Field should appear either in "fields" or "update", not in both.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
callback |
callback |
<optional> |
Called when data has been retrieved |
- Source:
Returns:
Resolved when data has been retrieved
- Type
- Promise
getChangelog(opts, callbackopt) → {Promise}
Returns the list of changelogs for the issue with the given key.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||
callback |
<optional> |
Called after the changelog is retrieved. |
- Source:
Returns:
Resolved after the changelog is retrieved.
- Type
- Promise
getComment(opts, callbackopt) → {Promise}
Get a specific comment.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the comment is retrieved. |
- Source:
Returns:
Resolved when the comment is retrieved.
- Type
- Promise
getComments(opts, callbackopt) → {Promise}
Get all the comments for an issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the issue has been assigned. |
- Source:
Returns:
Resolved when the issue has been assigned.
- Type
- Promise
getCreateMetadata(optsopt, callbackopt) → {Promise}
Returns the meta data for creating issues. This includes the available projects, issue types and fields, including field types and whether or not those fields are required. Projects will not be returned if the user does not have permission to create issues in that project.
The fields in the createmeta correspond to the fields in the create screen for the project/issuetype. Fields not in the screen will not be in the createmeta.
Fields will only be returned if expand=projects.issuetypes.fields.
The results can be filtered by project and/or issue type, given by the query params.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
The options for the API request. Properties
|
||||||||||||||||||||||||
callback |
<optional> |
Called when the metadata has been retrieved. |
- Source:
Returns:
Resolved when the metadata has been retrieved.
- Type
- Promise
getEditMetadata(opts, callbackopt) → {Promise}
Returns the meta data for editing an issue.
The fields in the editmeta correspond to the fields in the edit screen for the issue. Fields not in the screen will not be in the editemeta.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||
callback |
<optional> |
Called when the metadata is retrieved. |
- Source:
Returns:
Resolved when the metadata is retrieved.
- Type
- Promise
getIssue(opts, callbackopt) → {Promise}
Returns a full representation of the issue for the given issue key.
An issue JSON consists of the issue key, a collection of fields, a link to the workflow transition sub-resource, and (optionally) the HTML rendered values of any fields that support it (e.g. if wiki syntax is enabled for the description or comments).
The fields param (which can be specified multiple times) gives a comma-separated list of fields to include in the response. This can be used to retrieve a subset of fields. A particular field can be excluded by prefixing it with a minus.
By default, all (*all) fields are returned in this get-issue resource. Note: the default is different when doing a jql search -- the default there is just navigable fields (*navigable).
- *all - include all fields
- *navigable - include just navigable fields
- summary,comment - include just the summary and comments
- -comment - include everything except comments (the default is *all for get-issue)
- *all,-comment - include everything except comments
JIRA will attempt to identify the issue by the issueIdOrKey path parameter. This can be an issue id, or an issue key. If the issue cannot be found via an exact match, JIRA will also look for the issue in a case-insensitive way, or by looking to see if the issue was moved. In either of these cases, the request will proceed as normal (a 302 or other redirect will not be returned). The issue key contained in the response will indicate the current value of issue's key.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||||||||||
callback |
<optional> |
Called when data has been retrieved |
- Source:
Returns:
Resolved when data has been retrieved
- Type
- Promise
getIssueEstimation(opts, callbackopt) → {Promise}
Returns the estimation of the issue and a filedId of the field that is used for it. The boardId parameter is required, and determines which field will be updated on an issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the issue estimation has been retrieved. |
- Source:
Returns:
Resolved when the issue estimation has been retrieved.
- Type
- Promise
getIssuePicker(opts, callbackopt) → {Promise}
Returns suggested issues which match the auto-completion query for the user which executes this request. This REST method will check the user's history and the user's browsing context and select this issues, which match the query.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Properties
|
|||||||||||||||||||||||||||||
callback |
<optional> |
Called when the issues have been retrieved. |
- Source:
Returns:
Resolved when the issues have been retrieved.
- Type
- Promise
getProperties(opts, callbackopt) → {Promise}
Returns the keys of all properties for the issue identified by the key or by the id. This function is maked as experimental in the Jira API docs, use at your own risk.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||
callback |
<optional> |
Called when the properties are retrieved. |
- Source:
Returns:
Resolved when the properties are retrieved.
- Type
- Promise
getProperty(opts, callbackopt) → {Promise}
Returns the value of the property with a given key from the issue identified by the key or by the id. The user who retrieves the property is required to have permissions to read the issue.
This function is maked as experimental in the Jira API docs, use at your own risk.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the property is retrieved. |
- Source:
Returns:
Resolved when the property is retrieved.
- Type
- Promise
getProperty(opts, callbackopt) → {Promise}
Removes the property from the issue identified by the key or by the id. Ths user removing the property is required to have permissions to edit the issue.
This function is maked as experimental in the Jira API docs, use at your own risk.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the property is deleted. |
- Source:
Returns:
Resolved when the property is deleted.
- Type
- Promise
getRemoteLinkById(opts, callbackopt) → {Promise}
Get the remote issue link with the given id on the issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the remote links are retrieved. |
- Source:
Returns:
Resolved when the remote links are retrieved.
- Type
- Promise
getRemoteLinks(opts, callbackopt) → {Promise}
Get a REST sub-resource representing the remote issue links on the issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the remote links are retrieved. |
- Source:
Returns:
Resolved when the remote links are retrieved.
- Type
- Promise
getTransitions(opts, callbackopt) → {Promise}
Get a list of the transitions possible for this issue by the current user, along with fields that are required and their types.
Fields will only be returned if expand=transitions.fields.
The fields in the metadata correspond to the fields in the transition screen for that transition. Fields not in the screen will not be in the metadata.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the transitions are retrieved. |
- Source:
Returns:
Resolved when the transitions are retrieved.
- Type
- Promise
getVotes(opts, callbackopt) → {Promise}
Get a REST sub-resource representing the voters on the issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||
callback |
<optional> |
Called after the votes are retrieved. |
- Source:
Returns:
Resolved after the votes are retrieved.
- Type
- Promise
getWatchers(opts, callbackopt) → {Promise}
Returns the list of watchers for the issue with the given key.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||
callback |
<optional> |
Called after the watchers are retrieved. |
- Source:
Returns:
Resolved after the watchers are retrieved.
- Type
- Promise
getWorkLog(opts, callbackopt) → {Promise}
Gets a specific worklog.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called after the worklog is retrieved. |
- Source:
Returns:
Resolved after the worklog is retrieved.
- Type
- Promise
getWorkLogs(opts, callbackopt) → {Promise}
Gets all work logs for an issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||
callback |
<optional> |
Called after the worklogs are retrieved. |
- Source:
Returns:
Resolved after the worklogs are retrieved.
- Type
- Promise
removeWatcher(opts, callbackopt) → {Promise}
Adds a user to an issue's watcher list.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called after the watcher is removed. |
- Source:
Returns:
Resolved after the watcher is removed.
- Type
- Promise
sendEmailNotification(opts, callbackopt) → {Promise}
Sends a notification (email) to the list or recipients defined in the request. A couple of notes: this may call back with the error 'No recipients were defined for notification.' if all of the intended recipients have disabled notifications from Jira.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the metadata is retrieved. |
- Source:
Returns:
Resolved when the metadata is retrieved.
- Type
- Promise
setIssueEstimation(opts, callbackopt) → {Promise}
Updates the estimation of the issue. The boardId parameter is required, and determines which field will be updated on an issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||
callback |
<optional> |
Called when the issue estimation has been created. |
- Source:
Returns:
Resolved when the issue estimation has been created.
- Type
- Promise
setIssueRanks(ranking, callbackopt) → {Promise}
Moves (ranks) issues before or after a given issue.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
ranking |
Object | The ranking data in the form of PUT body to the Jira API. |
|
callback |
<optional> |
Called when the issue rank has been created. |
- Source:
Returns:
Resolved when the issue rank has been created.
- Type
- Promise
setProperty(opts, callbackopt) → {Promise}
Sets the value of the specified issue's property. You can use this resource to store a custom data against the issue identified by the key or by the id. The user who stores the data is required to have permissions to edit the issue.
This function is maked as experimental in the Jira API docs, use at your own risk.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||
callback |
<optional> |
Called when the property is set. |
- Source:
Returns:
Resolved when the property is set.
- Type
- Promise
transitionIssue(opts, callbackopt) → {Promise}
Perform a transition on an issue. When performing the transition you can udate or set other issue fields.
The fields that can be set on transtion, in either the fields parameter or the update parameter can be determined using the** /rest/api/2/issue/{issueIdOrKey}/transitions?expand=transitions.fields resource**. If a field is not configured to appear on the transition screen, then it will not be in the transition metadata, and a field validation error will occur if it is submitted.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||||||
callback |
<optional> |
Called when the transitions are retrieved. |
- Source:
Returns:
Resolved when the transitions are retrieved.
- Type
- Promise
unvote(opts, callbackopt) → {Promise}
Remove your vote from an issue. (i.e. "unvote")
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||
callback |
<optional> |
Called after the vote is removed. |
- Source:
Returns:
Resolved after the vote is removed.
- Type
- Promise
updateRemoteLink(opts, callbackopt) → {Promise}
Updates (or creates) a remote issue link from a JSON representation. If a globalId is provided and a remote issue link exists with that globalId, the remote issue link is updated. Otherwise, the remote issue link is created.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||
callback |
<optional> |
Called when the remote links are retrieved. |
- Source:
Returns:
Resolved when the remote links are retrieved.
- Type
- Promise
updateRemoteLinkById(opts, callbackopt) → {Promise}
Get the remote issue link with the given id on the issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||
callback |
<optional> |
Called when the remote links are retrieved. |
- Source:
Returns:
Resolved when the remote links are retrieved.
- Type
- Promise
updateWorkLog(opts, callbackopt) → {Promise}
Updates an existing worklog entry using its JSON representation.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||||||||||||||||||
callback |
<optional> |
Called after the worklog is updated. |
- Source:
Returns:
Resolved after the worklog is updated.
- Type
- Promise
vote(opts, callbackopt) → {Promise}
Cast your vote in favour of an issue.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The options to pass to the API. Note that this object must contain EITHER an issueId or issueKey property; issueId will be used over issueKey if both are present. Properties
|
|||||||||||||
callback |
<optional> |
Called after the vote is removed. |
- Source:
Returns:
Resolved after the vote is removed.
- Type
- Promise