addVote method

Future addVote(
  1. String issueIdOrKey
)

Adds the user's vote to an issue. This is the equivalent of the user clicking Vote on an issue in Jira.

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.

Permissions required:

Implementation

Future<dynamic> addVote(String issueIdOrKey) async {
  return await _client.send(
    'post',
    'rest/api/3/issue/{issueIdOrKey}/votes',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
  );
}