It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira API Create a task that has a parent Edited

Is there a way to create an issue with type 10100 "Task" with a parent issue of a type 10001 "story" using Jira api, because whenever i try this it responses that the issue id 10100 cannot have a parent, despite that I used to do so using Jira GUI.


I am using Postman to test that out, below is the json object i am sending

"update": {},

"fields": {
"project": {
"id": "15100"
"parent": {
"key": "TFL-128"
"issuetype": {
"id": "10100"

"summary": "some task",
"components": [],

"description": "some desc"



So any ideas?

3 answers

0 votes

Hi @Tariq Saeed 


I don't know wich langage you use but in python this work fine

'summary': 'test',
'description': 'test',
'issuetype': {'name':'issue type you want to create'},
'parent': {'key':'key of your task'},


I use nodejs, will try ur code out and let u know what happened, thank u

I got this response 

"errors": { "issuetype": "issue type is required" }

0 votes

I find this code can you try it :


"key": "TEST"
"key": "TEST-1"
"summary": "Sub-task of TEST-1",
"description": "Don't forget to do this too.",
"id": "5"


This code is coming from the jira documentation

Hope this helps

0 votes
LarryBrock Community Leader Sep 11, 2019

Hi @Tariq Saeed 

Just wanted to confirm "Task" is a sub-issue type.  If it's not, that's the reason you can't create it with a parent.  Cheers!

I am using the type id "10100" to appear on Jira as a task, but the API responses that this id should not have a parent.

I figured out recently that I might be able to do that using the link issue creation feature, but this has to be done separately in a second step after creating the task and receiving its id/key. I was hoping that I can do this in one request.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you