Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,372
Community Members
 
Community Events
176
Community Groups

Import list of data in drop down custom field?

Hi,

I have a huge list of data to import to a drop down field.

I know we can do this via script runner but I wanted to know if we could do it without buying any add on? 

 

Thank you,

Naw

1 answer

1 accepted

5 votes
Answer accepted

Create a dummy project that uses the field.

Create CSV with two columns - summary and field value (you can use the same value for each line!)

Import the CSV into the empty project - it will create one issue per line, and, if you configure it correctly for import, create a new option for each one in your new field.

Delete the project, it won't affect your field

Hey Nic,

Thank you for your answer but I wanted some clarification. 

First I will create a new project and add a new drop down custom field called (XYZ).

Next, I will create a csv file and have summary and XYZ columns

Summary XYZ

Test 1        X

Test 2        Y

Test 3         Z

This will create 3 new issues.

I will then assign this drop down to a the other project and delete the new dummy project?

Is this correct?

 

Pretty much. The only thing I'd change is the last bit - when you create the new field, put it in both the dummy and target project(s), or even make it global. One less step basically.

Sounds like this is adding values to each ticket. How about adding default values to a drop down list for one custom field being used for any ticket in the project? Is there a way to do this without manually typing into Jira from admin area?

Yes, it does, and then later, we delete the project to get rid of the issue data we don't need.  This and the gui are the only ways to add at the moment.

Thanks, I am attempting to import a test file, but a field is not available on the list in the mapping step. I noticed the fields not available are indicated as "...created by JIM during import process" on the "issues->Custom fields" page. Any tips? Actually I think just got it. The field needs to be global to all projects.

Danno Community Leader Jun 15, 2020

I realize this is an older thread but this solution doesn't work for loading values into a custom field. If they don't already exist it creates a set of warnings that says the entries can't be added to the Custom Field or am I missing a step?

Like Karen Gwynn likes this

Yes, but I think you already realised that.

The steps here are just for adding data to an existing field across a swathe of issues, data that already has existing options in the field definition.  It's not for creating a field from scratch.  You should however find a flag that says "if option in my CSV does not exist, add it"

Danno Community Leader Jun 18, 2020

Thanks for the reply Nic. You are correct, I was looking for a way to add a set of values to the custom field to update it. It's a Select List (single choice) that almost all of the values have changed so I was hoping to easily update it. The error I received was the following:

The value [ {null=BD0001: BD Pursuits} ] can't be added to the Custom Field [ Project #: ]. The value [ {null=BD0001: BD Pursuits} ] can't be found or is in the incorrect format

I don't remember seeing the flag to add it but if I understand you it won't help me add it to the Options list. I was hoping to avoid more add-ons (like Scriptrunner) even though I suspect I am going to run into this problem again. I'm also not a programmer by trade.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events