search method

Future<PageOfStatuses> search({
  1. String? expand,
  2. String? projectId,
  3. int? startAt,
  4. int? maxResults,
  5. String? searchString,
  6. String? statusCategory,
})

Returns a paginated list of statuses that match a search on name or project.

Permissions required:

Implementation

Future<PageOfStatuses> search(
    {String? expand,
    String? projectId,
    int? startAt,
    int? maxResults,
    String? searchString,
    String? statusCategory}) async {
  return PageOfStatuses.fromJson(await _client.send(
    'get',
    'rest/api/3/statuses/search',
    queryParameters: {
      if (expand != null) 'expand': expand,
      if (projectId != null) 'projectId': projectId,
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (searchString != null) 'searchString': searchString,
      if (statusCategory != null) 'statusCategory': statusCategory,
    },
  ));
}