getTrashedFieldsPaginated method

Future<PageBeanField> getTrashedFieldsPaginated({
  1. int? startAt,
  2. int? maxResults,
  3. List<String>? id,
  4. String? query,
  5. String? expand,
  6. String? orderBy,
})

Returns a paginated list of fields in the trash. The list may be restricted to fields whose field name or description partially match a string.

Only custom fields can be queried, type must be set to custom.

Permissions required: Administer Jira global permission.

Implementation

Future<PageBeanField> getTrashedFieldsPaginated(
    {int? startAt,
    int? maxResults,
    List<String>? id,
    String? query,
    String? expand,
    String? orderBy}) async {
  return PageBeanField.fromJson(await _client.send(
    'get',
    'rest/api/3/field/search/trashed',
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (id != null) 'id': id.map((e) => e).join(','),
      if (query != null) 'query': query,
      if (expand != null) 'expand': expand,
      if (orderBy != null) 'orderBy': orderBy,
    },
  ));
}