Forums

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

Not able to upload Sub-task issue type with parent key using JSON file in Data center

Saranraj Sampath
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 9, 2025

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.

2 answers

0 votes
Gor Greyan
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 9, 2025

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"
}
]
}
]
}

Saranraj Sampath
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 11, 2025

@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

Gor Greyan
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 12, 2025

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?

0 votes
Gor Greyan
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 9, 2025

Hi, @Saranraj Sampath

Thanks for your question.

Could you please share a part of your JSON, in order to set how you import that.

Iyyappan Rasu June 9, 2025
{
"projects": [
{
"key": "Test",
"issues": [
{
"summary": "Test",
"priority": "Lowest",
"issueType": "Sub-task",
"watchers": [
"saran@company.com"
],
"fixedVersions": [],
"comments": []
}
],
"versions": [
{
"name": "Default"
}
]
}
]
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events