Help with creating JQL Finding links Subtasks with Epics + All Issue Type

V G I'm New Here Nov 30, 2017


Looking for a help to build a JQL Filter Query for Scrum Board.


As part of Filter Not to include
- ALL subtasks linked to all stories that are linked to Epic 

In Summary, show only stories + associated subtasks that are not linked to group of Epics.

Appreciate your help.


1 answer

0 vote
Micky Caritte Community Champion Nov 30, 2017


Did you try:

(type = Subtask and "Epic Link" IS EMPTY) OR type = Story

That should do the trick if I understood well?


V G I'm New Here Nov 30, 2017

Hi Mickey,

Thanks for quick reply.

Looking for a query that I can use for board which will hide specific set of subtasks that are part of stories and those stories are  linked to specific set of epic.

Example : Epic A has Story 1,2,3 and story1 has subtask x and y, and story 2 has subtask aa and bb.

When query is executed it should show/return results minus (Epic A+ Story 1,2,3+ subtasks x/y/aa/bb).

Micky Caritte Community Champion Dec 01, 2017


I think I understood better now. Using native JQL might be hard to get to your expected result. If you use Script Runner, it's bringing advanced JQL functions which would help. You could write something like:

NOT((type = Story and 'Epic Link' is not empty) OR issueFunction in epicsOf("type = Story and 'Epic Link' is not empty") OR issueFunction in subtasksOf("type = Story and 'Epic Link' is not empty"))

 That should exclude Stories which are related to an Epic + their epics + their subtasks.

Hope this helps!

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,310 views 14 20
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