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
Hi @Dd
You can create the field and then use the API to add the options.
You can use ScriptRunner and turn a text field into a list.
See the ScriptRunner documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.