getCustomFieldOption method
Returns a custom field option. For example, an option in a select list.
Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect apps.
This operation can be accessed anonymously.
Permissions required: The custom field option is returned as follows:
- if the user has the Administer Jira global permission.
- if the user has the Browse projects project permission for at least one project the custom field is used in, and the field is visible in at least one layout the user has permission to view.
Implementation
Future<CustomFieldOption> getCustomFieldOption(String id) async {
return CustomFieldOption.fromJson(await _client.send(
'get',
'rest/api/3/customFieldOption/{id}',
pathParameters: {
'id': id,
},
));
}