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 Sampath
Thanks 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 bean
java.lang.RuntimeException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "parent" (Class com.atlassian.jira.plugins.importer.external.beans.ExternalIssue), not marked as ignorable
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Saranraj Sampath
Thanks 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Saranraj Sampath
Thanks for your question.
Could you please share a part of your JSON, in order to set how you import that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{
"projects": [
{
"key": "Test",
"issues": [
{
"summary": "Test",
"priority": "Lowest",
"issueType": "Sub-task",
"watchers": [
"saran@company.com"
],
"fixedVersions": [],
"comments": []
}
],
"versions": [
{
"name": "Default"
}
]
}
]
}
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.