curl -D- -u user:pass -X POST --data "{\"fields\":{\"project\":{\"key\":\"TECH\"},\"parent\":{\"key\":\"TECH-456\"},\"summary\":\"Test ChargenNr\",\"description\":\"some description\",\"issuetype\":{\"id\":\"10102\"}}}" -H "Content-Type:application/json" https://compnay.com/rest/api/2/issue/
Issue type 10102 is not a sub-task but a parent is specified."
when setting any other ID-valid issue type is required
I manually created subtask, here is part
"subtasks": [
{
"fields": {
"issuetype": {
"avatarId": 10316,
"description": "The sub-task of the issue",
"iconUrl": "https://jira.corp.hentsu.com/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype",
"id": "10101",
"name": "Sub-task",
"self": "https://jira.corp.hentsu.com/rest/api/2/issuetype/10101",
"subtask": true
},
What's wrong ?