JQL to get bugs linked to stories linked to an epic ;)

Is there a way to do this? I want a filter that gets me the Bugs linked to all the Stories linked to a certain Epic.

8 answers

1 accepted

You can combine those in following way:

1. create a filter that shows the stories linked to your epic (filter1)

issueFunction in linkedIssuesOf("issue = SMC-242", "is Epic of") and issuetype = Story

2. create a second filter that uses filter1:

issuetype=Bug AND status != Done AND issueFunction in linkedIssuesOf("filter = filter1", "<YourLinkType>")

Thanks for the tip. Sadly, linkedIssuesOf requires the second param, and my QA people have used different link types at random, so it's not going to be practical for me to look up the bugs this way without having them clean things up first.

Wish it could find by any old link type!

The next version won't require the second param, in which case it means: work across all link types

Ah, that are good news. Thanks Jamie!

It is definetily not easy to perform a filter covering all needs. I am looking for an easy way to find all Epics, Stories and other issue types, inclusive their sub-tasks.
The following helps a little:
"Epic Link" = ... OR "Epic Link" = ... OR parent in (..., ..., ..., ...) ORDER BY "Epic Name" ASC

This gives me the issues (all types, not just Stories) linked to a particular epic:

issueFunction in linkedIssuesOf("issue = SMC-226", "is Epic of")

But how to now get a list of bugs linked to all those...

0 vote

There was a question on this recently, but I can't find it. You need to the nest the query. Maybe try from the perspective of the bug, and use the filter query to find stories then epics. This is certainly possible.

Ok, maybe I'll find it. I haven't nested queries before, so maybe that's partly my problem.

I can get all bugs linked to a story with:

issuetype=Bug AND status != Done AND issue IN (linkedIssues("SMC-390"))

And get all stories linked to an epic with:

issueFunction in linkedIssuesOf("issue = SMC-242", "is Epic of") and issuetype = Story

But I can't seem to combine the two.


This plugin provides the possiblity to search the issues by links of all types. It is paid though not so expensive.


I have used both the plugins, only advantage I see with Craftware plugin is the need of getting parent issues of all the linked tasks.


Hello ,

Probably this could Help:

issue in linkedIssues(parentid, parent-of)

in the parent id just put the id of the epic . it will bring all the issues that are under the given epic id 

then filter on issuetype bug.




Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

178 views 12 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot