getTasks method

Future<LongTaskStatusArray> getTasks({
  1. int? start,
  2. int? limit,
})

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

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

Implementation

Future<LongTaskStatusArray> getTasks({int? start, int? limit}) async {
  return LongTaskStatusArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/longtask',
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}