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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

727 views 6 13
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