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

This widget could not be displayed.

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!

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

118 views 1 2
Join discussion

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