Order of subtasks change when I clone an issue with subtasks

Tina.Henry January 27, 2022

I have an issue set up for the purpose of using it as a template.  The plan is to cloning this template and it's subtasks to create new issues.  The subtasks are to be performed in a specific order.   When I clone the "template" issue, the order of the subtasks is not maintained.  Jira is consistently swapping the order of several of the tasks.  The first screenshot shows the template issue subtask order.  The second screenshot shows the clone of this issue. 

Is there a way to ensure the order of the subtasks is preserved?  

Jira clone order1.JPG

 

Jira clone order2.JPG

4 answers

0 votes
Stephen Kaiser
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!
February 27, 2024

I had modest success by adding a Re-fetch issue data step after the clone step. That seemed to add just enough of a delay to each iteration for the keys to be in the correct order. Order by created and rank still don't work well.

Bill Sheboy
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.
February 28, 2024

Hi @Stephen Kaiser -- Welcome to the Atlassian Community!

Until it doesn't work... :^)

Anything in automation rules doing multiple things / looping (e.g. branches which could be on multiple things) appears to run in parallel and asynchronously.  There is no defined processing order and no guarantee of when such branches will complete, up until the last rule step.  (I believe there are open backlog suggestions to add both "wait until done" and synchronous processing options to branches.)

And so a re-fetch inside of a branch would have no impact on the other processes running for other instances of the loop variable.  Any alignment is coincidental.

At this time, I believe the only ways to likely enforce the order are:

  • unroll the loops and add issues one by one without branching
  • use a marketplace addon to add issues sequentially
  • build your own app, similar to a marketplace one

Kind regards,
Bill

0 votes
Marlene Kegel - codefortynine
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
February 2, 2022

Hi Tina,

I am Marlene the product manager of codefortynine.

Subtasks can be ranked, but it seems that the Jira standard clone function doesn't clone the Subtask rank.

If your use case requires this feature, you can try our Marketplace app Deep Clone for Jira. When you clone with Deep Clone for Jira the subtasks ranking will be carried over to the cloned subtasks.

Another workaround would be to create new templates and ensure they are created in the correct order. If you don't change the ranking afterwards , cloning should also work with the Jira default clone.

0 votes
Bill Sheboy
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.
January 27, 2022

Hi @Tina.Henry 

Short answer: no, there is no out-of-the-box way to preserve the ordering of subtasks.

Longer answer:

The subtasks are ordered by create date, unless you drag them to a new order within the parent story. 

I am guessing during the asynchronous processing of some Jira Cloud operations clone leads to this ordering behavior.  The only work-around I have seen which usually works is with an automation rule to manually create the subtasks, one by one, slowing down the rule sufficiently to create time gaps in created date/time.

Kind regards,
Bill

0 votes
AMIT GULATI January 27, 2022

Hi Tina,

I tried the same on JIRA server but could not reproduce the issue. Are you using JIRA Cloud?

Tina.Henry January 29, 2022

Yes, Sorry, We're using Jira Cloud

Suggest an answer

Log in or Sign up to answer