search method
Returns a paginated list of statuses that match a search on name or project.
Permissions required:
- Administer projects project permission.
- Administer Jira project permission.
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,
},
));
}