Forums

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

Problem with Jira Rest API - Create SubSask

mateusz_swistak
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!
April 3, 2019

Hello,

i am creating tasks throught Rest API.

Creating tasks, does not cause the problem.

But when i try to add subtask i am getting 1 of 2 errors:

  • When i dont give parent in issue - Issue type is a sub-task but parent issue key or id not specified.

-- that is understable and i agree with that

  • When i give parent (with key or id does not matter) - Field 'Parent' cannot be set. It is not on the appropriate screen, or unknown.

-- that i don't understand how to go over this issue.

Any suggestions ? 

1 answer

0 votes
Mohamed Benziane
Community Champion
April 8, 2019

Hi @mateusz_swistak 

 

I used to work with this dictionary in python it works well

 

Issue_dict={
'project':{'key':"ABC"},
'summary': 'Anomalie',
'description': 'Subtask',
'issuetype': {'name':'Anomalie'},
'parent': {'key':'ABC-23'}
}
subtask=jira.create_issue(fields=Issue_dict)

Hope this helps

Suggest an answer

Log in or Sign up to answer