Problem with Jira Rest API - Create SubSask

mateusz_swistak 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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