Forums

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

How can I move a subtask from one parent issue to another using jira-python

Ben Steele
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!
September 27, 2021

I am trying to move a Jira subtask to a new parent. I have tried the following, but the task is not moved and no error is raised.

from jira.client import JIRA
jira_client = JIRA(options={....}, ouath={...})
query = "...some JSQL query...."
issues = jira_client.search_issues(query)
issue = issues[0]
current_parent_id = str(issue.fields.parent)
if current_parent_id = 'IU-999':
    issue.update(parent =  {'id': 'IU-1000'})

I am using jira-python 3.0.1.

1 answer

0 votes
Mohamed Benziane
Community Champion
September 28, 2021

Hi,

Welcome to the community

Since there is no REST API to move subtask between standard issue you can't achieve this.

An other option will be to clone the issue into the new parent.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events