Hi ,
I try to create a subtask with API but get the error:
Hi @Kei Ji
Try that line instead
"customfield_24109": {'value':'software'}
Regards,
Mohamed Adel
Thanks @Mohamed Adel !
I now got this error:
response text = {"errorMessages":[],"errors":{"customfield_24109":"Option id 'null' is not valid"}}
I have tried more time and change the software to Software and it works !
Thank you !!!!
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"}}}
It looks like you're new here. Sign in or register to get started.