cancelTask method

Future cancelTask(
  1. String taskId
)

Cancels a task.

Permissions required: either of:

Implementation

Future<dynamic> cancelTask(String taskId) async {
  return await _client.send(
    'post',
    'rest/api/3/task/{taskId}/cancel',
    pathParameters: {
      'taskId': taskId,
    },
  );
}