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 votes

Hello,

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

I had already done that.

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,270 views 5 10
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