getTask method

Returns information about an active long-running task (e.g. space export), such as how long it has been running and the percentage of the task that has completed.

Permissions required: Permission to access the Confluence site ('Can use' global permission).

Implementation

Future<LongTaskStatusWithLinks> getTask(String id) async {
  return LongTaskStatusWithLinks.fromJson(await _client.send(
    'get',
    'wiki/rest/api/longtask/{id}',
    pathParameters: {
      'id': id,
    },
  ));
}