Sub query to pull user stories from Epics and belonging to a different project

We have a project called PHA, it's a master project, that will hold all Epics, Epics are populated with User Stories.

Those User Stories come from PHA or any other projects.

How can I pull all the User Stories from those Epics?  I found the following but it requires to add each Epic manually, I am looking for a way that will pull the Epics directly. Thanks.

project = PHA AND issuetype = Epic OR "Epic Link" in (PHA-1, PHA-2, PHA-3)

 

 

2 answers

2 accepted

1 vote
Mikael Sandberg Community Champion Aug 18, 2017

I don't think you can do it in core JQL, but if you have JQL Tricks (on JIRA Server) you could search for all issues that have epics corresponding to a specific JQL, like this:

issue in issuesWhereEpicIn("project = \"PHA\"")

Thank you @Mikael Sandberg for your input.  I think I just got to a solution, using script runner.

 

This will list all linked issues to the Epics from the Project

issueFunction in linkedIssuesOf("project = PHA", "is epic of")

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
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
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