searchTasks method

  1. @deprecated
Future<TaskPageResponse> searchTasks({
  1. int? start,
  2. int? limit,
  3. String? spaceKey,
  4. String? pageId,
  5. String? assignee,
  6. String? creator,
  7. String? completedUser,
  8. int? duedateFrom,
  9. int? duedateTo,
  10. int? createdateFrom,
  11. int? createdateTo,
  12. int? completedateFrom,
  13. int? completedateTo,
  14. String? status,
})

Deprecated, use Confluence's v2 API.

Returns inline tasks based on the search query.

Permissions required: Permission to access the Confluence site ('Can use' global permission). Only tasks in contents that the user has permission to view are returned.

Implementation

@deprecated
Future<TaskPageResponse> searchTasks(
    {int? start,
    int? limit,
    String? spaceKey,
    String? pageId,
    String? assignee,
    String? creator,
    String? completedUser,
    int? duedateFrom,
    int? duedateTo,
    int? createdateFrom,
    int? createdateTo,
    int? completedateFrom,
    int? completedateTo,
    String? status}) async {
  return TaskPageResponse.fromJson(await _client.send(
    'get',
    'wiki/rest/api/inlinetasks/search',
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
      if (spaceKey != null) 'spaceKey': spaceKey,
      if (pageId != null) 'pageId': pageId,
      if (assignee != null) 'assignee': assignee,
      if (creator != null) 'creator': creator,
      if (completedUser != null) 'completedUser': completedUser,
      if (duedateFrom != null) 'duedateFrom': '$duedateFrom',
      if (duedateTo != null) 'duedateTo': '$duedateTo',
      if (createdateFrom != null) 'createdateFrom': '$createdateFrom',
      if (createdateTo != null) 'createdateTo': '$createdateTo',
      if (completedateFrom != null) 'completedateFrom': '$completedateFrom',
      if (completedateTo != null) 'completedateTo': '$completedateTo',
      if (status != null) 'status': status,
    },
  ));
}