Dear all,
I am trying to run a JQL query that looks somehting along the lines of:
project = XYZ AND component = "XYZ" AND (summary ~ XYZ OR summary ~ XYZ) AND labels != ComponentReview
The problem is that this query returns 0 results even though there are plenty of JIRA issues that do not have the label "ComponentReview" but satisfy all of the other conditions.
The intriguing part is that if I run the same query with "=" instead of "!=" I get all the issues that have the label so I am really wondering why does the "!=" operator does not work in this case?
Many thanks
Using labels != ComponentReview will return issues that have one or more labels, none of which are ComponentReview; it will not return issues that have no labels. Try the following to include those as well:
project = XYZ AND component = "XYZ" AND (summary ~ XYZ OR summary ~ XYZ) AND (labels is empty or labels != ComponentReview)
Worked perfectly. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.