getVotes method

Future<Votes> getVotes(
  1. String issueIdOrKey
)

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:

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,
    },
  ));
}