Forums

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

How to Clone a Task (and related subtasks) with JIRA-Python

Jason Vogel August 18, 2020

What is the proper way to Clone a Task (and related subtasks) with JIRA-Python?

There doesn't appear to be a Clone method, and I'm "nervous" about trying to copy a task and all the children correctly.  We've set up relationship dependencies within the subtasks, and it is important to maintain those in the cloned/copied task.  Ideally, we want to build out a whole series of template tasks that would become the foundation for most of our work going forward.

Suggestions?

1 answer

0 votes
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2020

Hi @Jason Vogel 

When you clone an issue it gives you an option to clone sub-tasks, links and sprint values. Is there anything that was not working?

or are you trying to clone using REST API? I don't think there is an end point yet for that, unless you want to write your own code to copy the issue and related information.

Ravi

Jason Vogel August 18, 2020

Yes, we are trying to do it via REST.  It works great through the UI, but I want to do via the API.  We are trying to automate a bunch of work based on existing "templates" that can be modified/updated at any time.

Jason Vogel August 20, 2020

Does anyone have any existing source to serve as a starting point/foundation?

Suggest an answer

Log in or Sign up to answer