Maintaining Story Sort Order During Clone

Aaron Eden December 20, 2024

I have a manually triggered automation that will clone an epic and all of its child stories (25 of them).   I would like the cloned stories to retain the same order as the ICSAUTO-1 epic they are being cloned from.

I attempted to do this by sorting my JQL result.  For some reason the stories still end up on the cloned epic in a pretty random order.

 



Automation

Screenshot 2024-12-20 at 10.10.18 AM.png

 

 

JQL Results - Showing the order inside the automation is correct

Screenshot 2024-12-20 at 10.00.53 AM.png

 

Stories on cloned epic (after automation execution)

image.png

 

2 answers

1 accepted

2 votes
Answer accepted
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.
December 20, 2024

Hi @Aaron Eden 

Branches in rules which could-be-on-more-than-one-thing are executed in parallel and asynchronously, with no predictable processing order.

With an automation rule, I know two ways to enforce issue creation order, but neither will work for your scenario of 25 child issues.

  1. In-line, creating each issue one by one.  This rule would be too long for the child issues.
  2. Two rules, where the first one triggers a second rule, and the second rule uses an Incoming Webhook trigger to recursively call itself.  With 25 issues, this rule would exceed the looping limit of 10, self-triggered calls.

Outside of automation rules, there are likely marketplace apps for cloning, or you could build-your-own service which creates issues sequentially and call that service from a Jira rule.

Kind regards,
Bill

0 votes
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 20, 2024

Hi @Aaron Eden 

 

The sorting in the JQL inside the automation will not set the sorting on a Board/Filter.  The Clone operation is acting on the issue and not on a Board, sorting is not tied to an issue but to the board or filter.

You will not be able to achieve this via Automation, however you can set this at the Board configuration.

Aaron Eden December 20, 2024

Thanks for your help @Shawn Doyle - ReleaseTEAM , much appreciated. 

The view where I'm hoping for the stories to be sorted in alpha order is when I'm viewing a single epic and it lists the stories.  How can I change the sort order there?

Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 20, 2024

I do not think you can.  You sort it once and it may remember your preference for the next time.  

Like Aaron Eden likes this

Suggest an answer

Log in or Sign up to answer