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
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,950 views 19 22
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