Bulk Import Custom Field Values
Use this built-in script to bulk import a list of values into any custom field that supports options, such as select lists, radio buttons, and checkboxes. This built-in script removes the need to manually add options to your custom fields when you configure a custom field's context, enabling you to quickly and easily add an entire list of options.
If your custom field already contains options, this built-in script appends the new options beneath the existing ones. Additionally, it bypasses any options that are already present, allowing you to update custom fields without fear of accidental deletion or duplication.
Using this built-in script
From ScriptRunner, navigate to Built-in Scripts > Bulk import custom field values.
In Name of custom field config scheme, select the custom field configuration scheme you wish to add the new field values to. These display below each available custom field.
For more information on configuring custom fields see Configuring a Custom Field.
In the Values to Import text field, enter the field options.
For single select lists, multi-select lists, radio buttons and checkboxes, enter each option on a new line. For example:
plainOption 1 Option 2 Option 3 Option 4
For cascading-select lists, enter the sub-options indented (tab or two spaces) under their parents. For example:
plainParentA ChildA1 ChildA2 ParentB ChildB
If your custom field already contains options, this built-in script appends the new options beneath the existing ones. Additionally, it bypasses any options that are already present, allowing you to update custom fields without fear of accidental deletion or duplication.
Click Preview to see details of the changes.
Click Run to add the new field options.
Options are viewed in Administration > Issues > Custom Fields by clicking the ellipses next to custom field name and selecting Configure contexts.