How to filter epics without stories by using JQL?

Muskan Shaikh January 27, 2020

I want Epics which don't have any story attached.

2 answers

1 accepted

6 votes
Answer accepted
Ganesh Babu
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2020

Hi @Muskan Shaikh 

project = PROJECT and issuetype = Epic and issueFunction not in hasLinkType("Epic-Story Link")

or

project = X and issuetype = Epic and issueFunction not in epicsOf("project = X")

issuefunction is something that might be available with scriptrunner plugin and you might need a scriptrunner plugin to achieve this

Muskan Shaikh January 27, 2020

it shows like: Field 'issueFunction' does not exist or you do not have permission to view it.

Like Jay Smith likes this
Ganesh Babu
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2020

Yea issueFunction is available only with scriptrunner plugin.

so you might need that in order to achieve this.

I am not sure how to search with plain jira

Muskan Shaikh January 27, 2020

Ok Thanks!

Shaun Rucker July 9, 2020

This worked perfect, thank you!!

 

 issuetype = Epic and issueFunction not in epicsOf("project = X") 

Like Ganesh Babu likes this
Ganesh Babu
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 9, 2020

Hi @Shaun Rucker 

cool...!!!

Raj Reddy September 7, 2021

What if I have 2 projects like Project =X  and Y.

appreciate your help.

im looking for features which donot have stories in projects X , Y And Z

Krasimir BOEV February 25, 2022

@Raj Reddy 

 issuetype = Epic and issueFunction not in epicsOf("project in (X,Y)") 

4 votes
Jack Nolddor _Sweet Bananas_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 27, 2020

Hi Muskan,

Sadly you cannot achieve the desired search using standard features on Jira, you must go for a third-party app instead. Using i.e. JQL Booster Pack you can type the following:

 

Search all Epics without Stories

type = Epic and issue NOT IN epicsOf('"Epic Link" IS NOT EMPTY')

 

Using this app you can also query other issues relations, check:

 

References:

 

Hope this helps you to create awesome queries <3

Kind regards

Suggest an answer

Log in or Sign up to answer