getVotes method
Returns details about the votes on an issue.
This operation requires the Allow users to vote on 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.
Note that users with the necessary permissions for this operation but
without the View voters and watchers project permissions are not
returned details in the voters
field.
Implementation
Future<Votes> getVotes(String issueIdOrKey) async {
return Votes.fromJson(await _client.send(
'get',
'rest/api/3/issue/{issueIdOrKey}/votes',
pathParameters: {
'issueIdOrKey': issueIdOrKey,
},
));
}