Forums

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

What is missing for Jira to import this Json file?

Gil Goldman June 6, 2019

Hi all!

Jira importer accepts a specific JSON format, and is kind of picky about it as is detailed here.

Even so, it should be ok with the following format:

{
"issues": [
{
"description": "h3.The epic that contains the work on Part 1",
"labels": "Example",
"issuetype": "Epic",
"summary": "Test_"
},
{
"description": "h3.The epic that contains the work on Part 2",
"labels": "Example",
"issuetype": "Epic",
"summary": "Test_"
},
{
"description": "h3.The epic that contains the work on Part 3",
"labels": "Example",
"issuetype": "Epic",
"summary": "Test_"
}
]
}

 

This JSON file was verified by https://jsonlint.com/ as recommended here, and does not contain any special fields.

Despite all of the verifications, Jira presents the following issues:

None issues and projects imported.

Failed to create data bean

 

Any idea why?

2 answers

0 votes
Lucas Rodrigues de Oliveira
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.
June 6, 2019

Hi Gil,

 

you need specify some values in your Json like this:

{
    "fields": {
       "project":
       {
          "key": "TEST"
       },
       "summary": "REST ye merry gentlemen.",
       "description": "Creating of an issue using project keys and issue type names using the REST API",
       "issuetype": {
          "name": "Bug"
       }
   }
}

https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

Gil Goldman June 7, 2019

Hi Lucas!
Tried updating the JSON based on your comments, still no luck. Any idea what's wrong?


{
"fields": {
"project":{
"key" : "ProjectKey"
},
"issues": [
{
"description": "h3.The epic that contains the work on Part 1",
"labels": "Example",
"issuetype":
{
"name" : "Epic"
},
"summary": "Test_1"
},
{
"description": "h3.The epic that contains the work on Part 2",
"labels": "Example",
"issuetype":
{
"name" : "Epic"
},
"summary": "Test_2"
},
{
"description": "h3.The epic that contains the work on Part 3",
"labels": "Example",
"issuetype":
{
"name" : "Epic"
},
"summary": "Test_3"
}
]
}

 

0 votes
Pete Singleton
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.
June 6, 2019

I think you need to specify the project to import these issues into?

Gil Goldman June 7, 2019

Don't know - tried it based on Lucas's response to this question, and no luck. any idea what might be off?

{
"fields": {
"project":{
"key" : "QA"
},
"issues": [
{
"description": "h3.The epic that contains the work on Part 1",
"labels": "Example",
"issuetype":
{
"name" : "Epic"
},
"summary": "Test_1"
},
{
"description": "h3.The epic that contains the work on Part 2",
"labels": "Example",
"issuetype":
{
"name" : "Epic"
},
"summary": "Test_2"
},
{
"description": "h3.The epic that contains the work on Part 3",
"labels": "Example",
"issuetype":
{
"name" : "Epic"
},
"summary": "Test_3"
}
]
}
}

Suggest an answer

Log in or Sign up to answer