How to search Jira for labels that are not equal to a specific value?

I have assigned a label to several issues. While using the search query labels="ab" successfully retrieves the relevant issues, I am struggling to find the correct syntax to search for labels that do not equal ab. What is the appropriate way to formulate this query to get issues that aren’t tagged with ab?

hey, you can try using the JQL query labels != "ab". Sometimes the quotes or syntax can be tricky, but this should give you issues not labeled as “ab”. Hope that helps!