Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a single select custom field

Dd
Contributor
September 11, 2024

Hi,

Is there a clean way to create a custom field of single select and populate the values from a list? Say I have 100 possible values, and I don't want to type them one-by-one.

Thanks

Dd 

4 answers

2 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2024

Hi @Dd 

You can create the field and then use the API to add the options.

See, api-group-issue-custom-field-options 

0 votes
Petru Simion _Simitech Ltd__
Atlassian Partner
December 13, 2024

You can use ScriptRunner and turn a text field into a list.

See the ScriptRunner documentation.

0 votes
Thomas Opiolka - codefortynine
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2024

Hi Dd,

You might consider using a third-party plugin for the import task. If you only need to import values once, remember that you don’t have to keep the plugin installed afterward. One such plugin is "External Data for Jira Fields," which allows you to use a CSV file or any JSON file as a data source. With the "Field Option Sync" configuration, you can sync values from the CSV into a native Jira select-list field either once or continuously if the file changes often.

After uninstalling the app, the field options synced will remain intact, making it technically a one-time import. I should disclose that I am involved with the vendor of this app.

I hope this helps.

Thomas

0 votes
Robert DaSilva
Community Champion
September 11, 2024

@Dd Unfortunately creating custom fields requires that you type out each option individually. 

One alternate way to accomplish this may be to use the Assets feature in Jira Service Management Premium. This feature allows you to import data from a CSV, and apply that to an Object Scheme inside of Assets itself. Then, you can create a new Assets Custom FIeld, and reference the specific Object you imported your many options to.

The field will be a little bit more complex to work with, as you will need to use Jira's Asset Query Language (AQL) in addition to JQL for searches, but it does allow for importing a large amount of data all at once.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events