Is there a JIra query which will return all stories without an EPIC?

epic, jira, jql

Solution

issuetype = Story and "Epic Link" != EMPTY

Problem

I'm trying to tidy up our Jira board and create an accurate story map. To do that I need to come up with a query that will return open user stories within a certain project that don't have any issue links (preferably 'related to (primary)')- the last part does not seem to be supported. I've had a look around an post of the Q&As are a few years old, so i'm wondering if it was been updated recently? I'm using version 5.1 Thanks!

Original source