searchResolutions method
Returns a paginated list of resolutions. The list can contain all resolutions or a subset determined by any combination of these criteria:
- a list of resolutions IDs.
- whether the field configuration is a default. This returns resolutions from company-managed (classic) projects only, as there is no concept of default resolutions in team-managed projects.
Permissions required: Permission to access Jira.
Implementation
Future<PageBeanResolutionJsonBean> searchResolutions(
{String? startAt,
String? maxResults,
List<String>? id,
bool? onlyDefault}) async {
return PageBeanResolutionJsonBean.fromJson(await _client.send(
'get',
'rest/api/3/resolution/search',
queryParameters: {
if (startAt != null) 'startAt': startAt,
if (maxResults != null) 'maxResults': maxResults,
if (id != null) 'id': id.map((e) => e).join(','),
if (onlyDefault != null) 'onlyDefault': '$onlyDefault',
},
));
}