Internal
Create a new instance of the service.
Adds a user as a watcher of an issue by passing the account ID of the user. For
example, "5b10ac8d82e05b22cc7d4ef5"
. If no user is specified the calling user
is added.
This operation requires the Allow users to watch issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details.
Permissions required:
The ID or key of the issue.
The account ID of the user. Note that username cannot be used due to privacy changes.
Returned if the request is successful.
Returns the watchers for an issue.
This operation requires the Allow users to watch issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details.
This operation can be accessed anonymously.
Permissions required:
The ID or key of the issue.
Returned if the request is successful
example:
{
"isWatching": false,
"self": "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
"watchCount": 1,
"watchers": [
{
"accountId": "5b10a2844c20165700ede21g",
"active": false,
"displayName": "Mia Krystof",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
}
]
}
Returns, for the user, details of the watched status of issues from a list. If
an issue ID is invalid, the returned watched status is false
.
This operation requires the Allow users to watch issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details.
Permissions required:
Returned if the request is successful
example:
{
"issuesIsWatching": {
"10001": true,
"10002": false,
"10005": true
}
}
Deletes a user as a watcher of an issue.
This operation requires the Allow users to watch issues option to be ON. This option is set in General configuration for Jira. See Configuring Jira application options for details.
Permissions required:
Optional
accountThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5. Required.
The ID or key of the issue.
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
Protected
Static
initialize
This resource represents users watching an issue. Use it to get details of users watching an issue as well as start and stop a user watching an issue.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-watchers