JQL: How to reference a set of Epics; all those within a project.

I have needed to create a filter that returns a list of issues that belong to Epics NOT included in the project in question (and to repeat this for multiple projects). I have succeeded in doing this by manually excluding each Epic:


project = "bFO Sales" AND issuetype = Story AND "Epic Link" not in (BFOS-46, BFOS-45, BFOS-47, BFOS-55, BFOS-48) ORDER BY priority DESC, updated DESC


The problem with this is that if a new Epic is created then the filter will be out of date until such time as the new Epic key is added to the list in the brackets. With many examples of this kind of filter in out rapidly evolving landscape, this is impractical.

Therefore, I am looking for a way (something to put in those brackets?) to reference all Epics that are within a project.

Any help would be much appreciated.


1 answer

Hi Max,

Unfortunately, for JIRA Cloud you cannot use custom JQL functions (as the ones defined by ScriptRunner for JIRA Server) and there is no way to achieve the functionality you want with the basic JQL functions (you may see the available operators for the epic link field here)



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
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

504 views 1 18
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