Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Clone a Task automatically including Subtasks Edited

Hi,

 

I can Clone a Task automatically. That's ok.

But I want to clone the Subtask too and put the cloned Subtask to the cloned Task. In other words, I want to Clone a Task with its Subtasks. And when I click on the cloned Task, I want to have the Cloned Subtasks linked in the cloned Task, as in the original Task.

 

That's my actual automation:

Bildschirmfoto 2020-05-13 um 15.17.05.png

1 answer

0 votes

Hi @Marius 

See the answer of Commodore, you need to add this value "{{createdIssue.key}} to the parent issue.

 

"https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-clone-a-task-and-its-subtasks/qaq-p/605089é

Sorry that will not resolve my problem.

I don't have a manually trigger. I have a planned rule, please see my screenshot.

But i take a look on your Link and the picture in your link is telling me, that I have to write "{{createdIssue.key}}" to the parent Issue field. But in the "Parent Issue" field i have a drop down to choose "Aktueller Vorgang" or "Triggervorgang".

What am I doing wrong?

It's not important which trigger you use. Even if you have the dop down list you can write the value that i give u and press enter to validate your value. I just test it

Ok thank you Mohamed, I've put the Information successfully in the field "parent issue".  But, now it becomes a little bit complicated.

 

Initial Situation:

Task 1 incl. Subtask 1 and Subtask 2

 

New Situation after running the rule:

Task 1 incl. Subtask 1 and Subtask 2 AND cloned Subtask 1 and cloned Subtask 2

Cloned Task 1

 

What i like to have:

Initital Situation:

Task 1 incl. Subtask 1 and Subtask 2

After running the rule:

Task 1 incl. Subtask 1 and Subtask 2

Cloned Task 1 incl. cloned Subtask 1 and cloned Subtask 2

 

Can you follow me?

The sticking point is, that Jira should clone the subtasks and put them to the cloned Task and NOT to the old Task. You know what I mean?

Weird, it working good in my instance. If the first task have 2 subtask then the new task have only two subtask too

Can you share your automation pls

Of course. Here you see my Automation and in the second picture you see the result after i runned the automation.

My Automation is unfortunately in German. I switched the language in Jira to English but the Automation part is always in German. I hope you can understand it anyway.

 

Bildschirmfoto 2020-05-13 um 17.21.15.pngBildschirmfoto 2020-05-13 um 17.21.38.png

here my automation, it works fine. I think is the same as your (sorry i can't read german :) )

automation.png

Hi Mohamed,

thank you for your Screenshot. Now here's my automation in english.

When I run the rule, there is an Error in the Logfile (see second picture).

The result is the same as yesterday: It clones all the Issues and Subtasks but did not add the cloned subtasks to the cloned task. It adds the cloned subtask to the origin task.

Maybe you can see a wrong setting?

//edit: I figured out: When i changed the "When: Scheduled" to "manually Triggered" then the rule runs correct.

So is there a wrong setting on my "When: Scheduled"?

Bildschirmfoto 2020-05-14 um 07.38.40.pngBildschirmfoto 2020-05-14 um 07.40.41.png

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Next-gen

Keyboard shortcuts have arrived for next-gen projects!

...ollected feedback from users around the lack of shortcuts, and we’re here to address that: In next-gen projects, I miss the keyboard shortcuts badly. This is particularly true on the Board, but also i...

4,851 views 5 14
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you