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
Accepted answer
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\"")

0 votes
Accepted answer

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
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,723 views 17 21
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