getOptionsForContext method
Returns a paginated list of all custom field option for a context. Options are returned first then cascading options, in the order they display in Jira.
This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations.
Permissions required: Administer Jira global permission.
Implementation
Future<PageBeanCustomFieldContextOption> getOptionsForContext(
{required String fieldId,
required int contextId,
int? optionId,
bool? onlyOptions,
int? startAt,
int? maxResults}) async {
return PageBeanCustomFieldContextOption.fromJson(await _client.send(
'get',
'rest/api/3/field/{fieldId}/context/{contextId}/option',
pathParameters: {
'fieldId': fieldId,
'contextId': '$contextId',
},
queryParameters: {
if (optionId != null) 'optionId': '$optionId',
if (onlyOptions != null) 'onlyOptions': '$onlyOptions',
if (startAt != null) 'startAt': '$startAt',
if (maxResults != null) 'maxResults': '$maxResults',
},
));
}