Unable to query list of issues for a Epic - structure is Epic - Story->Issues.

We are evaluating using the JQL tricks plugin.

However, I am unable to get the query to show the results we need

Here is the structure we use inside JIRA

Epic -> [Story (Epic link in story points to Epic) -> Story contains Issues.]

Epic is inside Project= PM

Story and Issues  inside Project = Platform

I am trying to create a query that shows all the stories and subtasks for all Epics (that are open).

The linked query function in JQL only shows links, and does not show issues that are inside the Epic or Story.

How do I workaround that issue? Here is the query I am trying to use:

(issue in linkedIssuesInProject("PM")) OR (project = Product ) OR ("Epic Link" IS NOT EMPTY )

Thoughts? - Sorry, I am a bit new to JIRA - the solution might be obvious :-)

1 answer

1 accepted

0 vote

Ashwin, You can use the issuesWhereEpicIn function. Something like this:

issue in issuesWhereEpicIn("status = Open AND project = PM AND other_criteria_here") AND project = Platform

And, of course, you can use this along with other queries to search based on links, subtasks etc. For example, you can save this query as a filter and find all subtasks using the parent function.

issue in parent("above_query or a filter that you have")

thank u Jobin. This worked. 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,403 views 15 13
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