cancelTask method
Cancels a task.
Permissions required: either of:
- Administer Jira global permission.
- Creator of the task.
Implementation
Future<dynamic> cancelTask(String taskId) async {
return await _client.send(
'post',
'rest/api/3/task/{taskId}/cancel',
pathParameters: {
'taskId': taskId,
},
);
}