I am currently working on migrating issues from Jira cloud to Jira data center. I have prepared JSON file with issue details. During upload am facing one strange issue that system able to create the issue as "Sub-task" issue type however system not able to link that created issue to parent.
Hi, @Saranraj SampathThanks for your question.Could you please share a part of your JSON, in order to set how you import that.
{"projects": [{"key": "Test","issues": [{"summary": "Test","priority": "Lowest","issueType": "Sub-task","watchers": ["saran@company.com"],"fixedVersions": [],"comments": []}],"versions": [{"name": "Default"}]}]}
Hi @Saranraj SampathThanks for providing JSON.Your JSON creates sub-task, but Jira doesn't know which parent issue it belongs, because the "parent" attribute is missing.You should specify the "parent" key with the issue key or ID of the parent issue.Try with the following JSON.
{"projects": [{"key": "Test","issues": [{"summary": "Test","priority": "Lowest","issueType": "Sub-task","parent": "TEST-123", // Replace with actual parent issue key"watchers": ["saran@company.com"],"fixedVersions": [],"comments": []}],"versions": [{"name": "Default"}]}]}
@Gor Greyan - When we include parent key in our json. During upload system throwing this error.
ERROR - Failed to create data beanjava.lang.RuntimeException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "parent" (Class com.atlassian.jira.plugins.importer.external.beans.ExternalIssue), not marked as ignorable
Dear @Saranraj SampathThanks for the provided answer.Let's try with the following one.{"fields": {"summary": "Test","issuetype": { "name": "Sub-task" },"parent": { "key": "TEST-123" },"priority": { "name": "Lowest" },"project": { "key": "TEST" }}}And please inform me, do you have chance, to do the import via the CSV or not?
It looks like you're new here. Sign in or register to get started.