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?
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/
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"
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you need to specify the project to import these issues into?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.