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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

133 views 0 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