How clone a task and its subtasks ?

Hello,

I don't have the subtasks when I clone a task with subtasks. Is it possible to do it ?

6 answers

This widget could not be displayed.

There are a number of add-ons that can do this, with varying features.  You will need an add-on of some sort to do this, though.

This widget could not be displayed.
Nick Menere Community Champion Jul 05, 2017

Oliver,

 

We are tracking the ability to clone subtasks automatically at - AUT-335

In the mean time, you can mnaully loop over the sub-tasks of the original issue and clone these. You will need to overwrite the parent in the advanced section with:

{
    "fields": {
        "parent": "{{createdIssues.first.key}}."
    }
}

This will set teh parent of teh cloned issue to the first issue created in the rule - in this case the original clone.

 

Let me know how you go.

 

Cheers,

Nick

Hello Nick,

Unfortunately, this (great) workaround no longer works. It now returns an error to the Audit log:

CREATE ISSUE

Error creating issue Issue type is a sub-task but parent issue key or id not specified. (issuetype)

Regards,

Olena

This widget could not be displayed.

Hello Nick,

I'm sorry to answer you so late...

I've tried to do what you told me but it is too difficult...I'm not an expert yet in the pluggin settings.

For example...I have a trigger "When: Issue commented" and an action "Then: Clone issue into same project and same issue type"...after that I don't know what to do to clone the subtasks of the task...sorry.

Cheers,

Olivier

Nick Menere Community Champion Jul 20, 2017

Oliver,

I tried the following locally and it succesfully craeted clones sub-tasks.

Screen Shot 2017-07-21 at 3.16.12 pm.png

Let me know if you get it working.

 

Cheers,

Nick

This widget could not be displayed.

Hello Nick,

It in not exactly what I would like to do. 

"When I create an issue A then I clone an issue B and for this issue I clone their sub-tasks...and I delete the issue A"

But I can not add "And:For Sub-tasks" in the JQL branch...

See the the screen shot below2017-08-28_0933.png

This widget could not be displayed.

Hello Nick,

I did it with 2 rules but I have an another problem...The subtask have links between them (block by etc...) and when I clone the subtasks the links are not clones...I lost all my links, too bad.

Do you have an idea.

Nick Menere Community Champion Aug 31, 2017

Unfortunately we can't clone issue links yet.

We are tracking this at: https://codebarrel.atlassian.net/browse/AUT-162

You can add the links to the description of the issue or asa comment, not perfect but it is workable.

 

Cheers,

Nick

This widget could not be displayed.

Hello Nick,

Thank you for your answer.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

135 views 16 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you