This question is in reference to Atlassian Documentation: Search syntax for text fields
How do I use JQL to search for issues where "X does not contain Y", if X is a plain text field and Y is a particular word
I have tried "NOT X ~ Y", but that seems to give all issues where X contains something else apart from Y, but excludes all those issues where X is empty. I wish to include issues where X is empty in my results.
Try adding:
OR X is EMPTY
You might need to use parenthesis appropriately if there are more required conditions.
Thank you @Ignacio Gavier, that solved my problem exactly.
May I suggest that "EMPTY" be mentioned on the Search syntax for text fields page, especially as it is also not mentioned on the Query Parser Syntax page of the Lucene documentation which is linked thence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It might be a good idea that Atlassian referenced the the EMPTY keyword also there, besides of here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.