/
How to add values to a custom field in Jira using Jira CLI
How to add values to a custom field in Jira using Jira CLI
This article explains how to add options to a custom field that has field type option in Jira using Jira Command Line Interface (CLI).
Instructions
Since CLI v9.3.0, the custom field options is available with the addCustomFieldOptions action.
In this example, a select list field input is used, which has options 1, 2, and 3. The screenshot below displays the "input" custom field configuration:
Run the action below to add the custom field options "20, 40, 50" from the list of options:
--action addCustomFieldOptions --field input --options "20, 40, 50"
In this action, --field refers to the custom field name and --options is for the custom field values.
- Log in to Jira and check the custom field configuration. The values are added to Options as shown in the screenshot below:
The action works only on the custom fields that allow configuration of options like Select List (single choice), Select List (multiple choices), Radio Buttons, etc..
Related content
How to update custom field options using Jira CLI
How to update custom field options using Jira CLI
More like this
How to retrieve the list of options available for a custom field in Jira using Jira CLI
How to retrieve the list of options available for a custom field in Jira using Jira CLI
More like this
How to remove options from a custom field using Jira CLI
How to remove options from a custom field using Jira CLI
More like this
Custom Fields - Add a field
Custom Fields - Add a field
More like this
addCustomField
addCustomField
Read with this
Custom Field Types
Custom Field Types
More like this