getAllIssueFieldOptions method

Future<PageBeanIssueFieldOption> getAllIssueFieldOptions({
  1. int? startAt,
  2. int? maxResults,
  3. required String fieldKey,
})

Returns a paginated list of all the options of a select list issue field. A select list issue field is a type of issue field that enables a user to select a value from a list of options.

Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.

Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.

Implementation

Future<PageBeanIssueFieldOption> getAllIssueFieldOptions(
    {int? startAt, int? maxResults, required String fieldKey}) async {
  return PageBeanIssueFieldOption.fromJson(await _client.send(
    'get',
    'rest/api/3/field/{fieldKey}/option',
    pathParameters: {
      'fieldKey': fieldKey,
    },
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
    },
  ));
}