searchTasks method
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,
},
));
}