How to import JSON data with custom fields

I'm having a lot of trouble importing JSON data which needs to include values for custom fields. The ids and types of the custom fields are already defined, but the JSON import ignores them.

"issues": [
{
"key" : "TEST-1",
"summary" : "Summary text goes here",
"customfield_10082" : "Some text"
}
]

I know it's possible to add custom fields with this format

 "customFieldValues": [
                    //Custom Fields which accepts single values:
                        {
                            "fieldName": "My Awesome Text Field (single line)",
                            "fieldType": "com.atlassian.jira.plugin.system.customfieldtypes:textfield",
                            "value": "some text"
                        },

 But this creates completely new custom fields. It doesn't populate any that have already been defined.

1 answer

0 vote
Alexey Matveev Community Champion Dec 29, 2017

Hello,

Try to add the custom field on the create and edit screen and have a look.

I had already done that.

Alexey Matveev Community Champion Dec 29, 2017

What is the type of your custom field?

I have tried text and doubles. But it looks like the Json import is not capable of dealing with custom properties in the way I need. A bit of research has turned up reports from others who have hit the same snag.

However, the CSV import function is much more capable. I reworked my process around that and have found that I can do everything that I need to do.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

622 views 6 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you