getIssueFieldOption method

Future<IssueFieldOption> getIssueFieldOption({
  1. required String fieldKey,
  2. required int optionId,
})

Returns an option from a select list issue field.

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<IssueFieldOption> getIssueFieldOption(
    {required String fieldKey, required int optionId}) async {
  return IssueFieldOption.fromJson(await _client.send(
    'get',
    'rest/api/3/field/{fieldKey}/option/{optionId}',
    pathParameters: {
      'fieldKey': fieldKey,
      'optionId': '$optionId',
    },
  ));
}