How to find all linked issues to Epics that have a component?

From my understanding, all issues created under an Epic do not inherit the component of the parent Epic.

Let's say I tag certain epics with component "projectA", but all my linked stories are not tagged. Could I use JQL to find all stories within all the epics tagged with component "projectA"?

I'm on OnDemand for JIRA.

4 answers

Try the following jql:

"Epic Link" is not EMPTY AND component = "projectA"

Thanks for replying Alexey. This only gives me the Epic tagged "Project A", but not the issues that are children of that.

I clarified the question a bit more above.

Just to clarify here is an example:

  • Epic Issue-100, tagged component "projectA"
  • Story Issue-101, Epic Link Issue-100, no component
  • Story Issue-102, Epic Link Issue-100, no component
  • Epic Issue-103, tagged component "projectA"
  • Story Issue-104, Epic Link Issue-103, no component

I wanted a JQL that would give me if I selected for component "projectA", it would show Issue-101, Issue-102, Issue-104

You cannot do that with a single jql query. THink about creating a script that will do that through iteration (find epics with project A and search for the child of each) or creation of gadget that will do the same job.

Please try:
issueFunction in linkedIssuesOf("component = projectA", "is Epic of")
using Script Runner

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

744 views 1 18
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