Forums

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

Updating subtasks using Python update() Jira API

Elijah Scherz
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!
July 12, 2019

Currently, I'm trying to update some simple fields on a subtask in a Next-Gen project. I'm using the update() python method, and here is what I am using as fields:

{'project': {'id': '11205'}, 'summary': 'This child also needs to be done', 'description': 'UPDATED', 'issuetype': {'name': 'Subtask'}, 'parent': {'id': '16469', 'key': 'LT-4'}}

However, whenever update() is called, I get this error:

Issue type is a sub-task but parent issue key or id not specified.

 

Obviously, this doesn't make much sense because I am very clearly passing in both.

 

If anyone has any idea what could be causing this, let me know!

1 answer

0 votes
Thomas Deiler
Community Champion
July 14, 2019

Dear @Elijah Scherz ,

have you tried to paste the whole JSON request inside postman or any other REST client? Does the same error occur?

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events