getTask method

Future<TaskProgressBeanObject> getTask(
  1. String taskId
)

Returns the status of a long-running asynchronous task.

When a task has finished, this operation returns the JSON blob applicable to the task. See the documentation of the operation that created the task for details. Task details are not permanently retained. As of September 2019, details are retained for 14 days although this period may change without notice.

Permissions required: either of:

Implementation

Future<TaskProgressBeanObject> getTask(String taskId) async {
  return TaskProgressBeanObject.fromJson(await _client.send(
    'get',
    'rest/api/3/task/{taskId}',
    pathParameters: {
      'taskId': taskId,
    },
  ));
}