getSelectableIssueFieldOptions method

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

Returns a paginated list of options for a select list issue field that can be viewed and selected by the user.

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: Permission to access Jira.

Implementation

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