Hi ,
I try to create a subtask with API but get the error:
Hi @Kei Ji Welcome to the Atlassian Community!
Here's a sample example of how I created a subtask of issue type (id 10001) "Task" under my parent of type "Epic"
URL - POST https://yourdomain.atlassian.net/rest/api/2/issue
Headers:
Content-Type: application/json
Make sure authentication is present in the header
JSON Body -
{
"fields": {
"project": {
"key": "FIR"
},
"parent": {
"key": "FIR-10"
},
"summary": "Sub-task of FIR-10",
"description": "Test Description",
"issuetype": {
"id": "10001"
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Mohamed Adel !
I now got this error:
response text = {"errorMessages":[],"errors":{"customfield_24109":"Option id 'null' is not valid"}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.