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


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 votes
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?


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 Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,084 views 4 9
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