removeVote method
Deletes a user's vote from an issue. This is the equivalent of the user clicking Unvote 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<void> removeVote(String issueIdOrKey) async {
await _client.send(
'delete',
'rest/api/3/issue/{issueIdOrKey}/votes',
pathParameters: {
'issueIdOrKey': issueIdOrKey,
},
);
}