JIRA Filter that Displays main ticket with other linked ticket or subtasks in order

Bryan Trummer Community Champion Dec 03, 2013

I am trying to create a filter that displays our main customer ticket, it then lists any linked tickets which would be the development ticket and any subtasks. I have not been able to really get any query to work so far. I have an example of how it should be ordered. Any help is appreciated.

ES0001-403 Risk Hold Flag

WDE360-43 Risk Hold Flag dev work in

WDE360-44 Add Funds Risk Flag to database Merchant Record

WDE360-45 Add Funds Risk Flag to the Merchant Boarding Process

WDE360-46 Update the Merchant Details Screen to Display the New Flag

1 answer

Bryan,

You could do that by using Groovy Script Runner. Install the plugin and enable the JQL functions (should be done automatically after installation). You can query tickets with linked issues as:

project = XXX and ((issueFunction in hasSubtasks() and issueFunction in hasLinks("Is Related to")) or issueFunction in subtasksOf("")) ORDER BY Key,type

What this query does is listing the parent issues with links and subtasks and by ordering key and type lists them below. You can add more filters by filtering them by labels etc.

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 Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
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