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?
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.
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:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tina,
I tried the same on JIRA server but could not reproduce the issue. Are you using JIRA Cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.