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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,083 views 13 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
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