This article explains how to remove one or more options of a custom field in Jira using Jira Command Line Interface (CLI)
Instructions
- From CLI V9v9.3.0, The custom field options can be removed using removeCustomFieldOptions action.
- In this example, a select list field is used named "input" which has options 1, 2, and 3.
The screenshot below shows the "input" custom field configuration.: Execute the below action to delete the custom field option "2" from the list of options.:
Code Block theme Midnight --action removeCustomFieldOptions --field "input" --options "2"
--field represents the custom field name
--options for the custom field option\values- Login Log in to Jira and check the verify the custom field configuration, the option will be . The option is removed as shown in the below screenshot below.:
To remove more than one custom field option, provide a use comma separated list of options as shown below.:
Code Block theme Midnight --action removeCustomFieldOptions --field "input" --options "2,3"
Note |
---|
The action works only on the custom fields that allows configuration of options. |
Info |
---|
It is recommended to test this scenario in a non-production environment or run the action with the --simulate parameter, to verify the behavior before deploying on a production environment. |