deleteCustomFieldOption method

Future<void> deleteCustomFieldOption({
  1. required String fieldId,
  2. required int contextId,
  3. required int optionId,
})

Deletes a custom field option.

Options with cascading options cannot be deleted without deleting the cascading options first.

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<void> deleteCustomFieldOption(
    {required String fieldId,
    required int contextId,
    required int optionId}) async {
  await _client.send(
    'delete',
    'rest/api/3/field/{fieldId}/context/{contextId}/option/{optionId}',
    pathParameters: {
      'fieldId': fieldId,
      'contextId': '$contextId',
      'optionId': '$optionId',
    },
  );
}