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 votes
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 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,063 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