addVote method
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:
- Browse projects project permission for the project that the issue is in.
- If issue-level security is configured, issue-level security permission to view the issue.
Implementation
Future<dynamic> addVote(String issueIdOrKey) async {
return await _client.send(
'post',
'rest/api/3/issue/{issueIdOrKey}/votes',
pathParameters: {
'issueIdOrKey': issueIdOrKey,
},
);
}