getAllFieldConfigurations method

Future<PageBeanFieldConfigurationDetails> getAllFieldConfigurations({
  1. int? startAt,
  2. int? maxResults,
  3. List<int>? id,
  4. bool? isDefault,
  5. String? query,
})

Returns a paginated list of field configurations. The list can be for all field configurations or a subset determined by any combination of these criteria:

  • a list of field configuration item IDs.
  • whether the field configuration is a default.
  • whether the field configuration name or description contains a query string.

Only field configurations used in company-managed (classic) projects are returned.

Permissions required: Administer Jira global permission.

Implementation

Future<PageBeanFieldConfigurationDetails> getAllFieldConfigurations(
    {int? startAt,
    int? maxResults,
    List<int>? id,
    bool? isDefault,
    String? query}) async {
  return PageBeanFieldConfigurationDetails.fromJson(await _client.send(
    'get',
    'rest/api/3/fieldconfiguration',
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (id != null) 'id': id.map((e) => '$e').join(','),
      if (isDefault != null) 'isDefault': '$isDefault',
      if (query != null) 'query': query,
    },
  ));
}