getFieldConfigurationItems method

Future<PageBeanFieldConfigurationItem> getFieldConfigurationItems({
  1. required int id,
  2. int? startAt,
  3. int? maxResults,
})

Returns a paginated list of all fields for a configuration.

Only the fields from configurations used in company-managed (classic) projects are returned.

Permissions required: Administer Jira global permission.

Implementation

Future<PageBeanFieldConfigurationItem> getFieldConfigurationItems(
    {required int id, int? startAt, int? maxResults}) async {
  return PageBeanFieldConfigurationItem.fromJson(await _client.send(
    'get',
    'rest/api/3/fieldconfiguration/{id}/fields',
    pathParameters: {
      'id': '$id',
    },
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
    },
  ));
}