How do I order a filter to show a parent issue followed by its children?

I'm using scriptRunner to filter all issues of a specific type that has subtasks. It displays the parent issue and its subtasks, but is currently ordered by key. I want to order it so it shows:

Parent

Subtasks

Parent

Subtasks

etc.

 

Is there a way to accomplish this?

2 answers

Hi Deanna,

We would not be able to list tree structure I am afraid.

Could you use the field called "Linked Issues" at the filter results.

You would be able to list the issues and linked issues ( Issue Keys)

Dang. Just listing the issues and the keys of the linked issues isn't enough - I need the extra data!

Hi Deanna,

Since you already have Scriptrunner it is not so har to add a scripted field to store the ParentIssue key in the child. Then order the search result by ParentIssue ASC, key ASC. The details is best to get from the Scriptrunner documentation, https://scriptrunner.adaptavist.com/latest/jira/scripted-fields.html. Some information is available in https://jira.atlassian.com/browse/JRASERVER-9197 as well.

Br
Henrik

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

920 views 3 12
Read article

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