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


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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,299 views 12 19
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