getIssueWatchers method
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:
- Browse projects project permission for the project that the issue is ini
- If issue-level security is configured, issue-level security permission to view the issue.
- To see details of users on the watchlist other than themselves, View voters and watchers project permission for the project that the issue is in.
Implementation
Future<Watchers> getIssueWatchers(String issueIdOrKey) async {
return Watchers.fromJson(await _client.send(
'get',
'rest/api/3/issue/{issueIdOrKey}/watchers',
pathParameters: {
'issueIdOrKey': issueIdOrKey,
},
));
}