Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Searching Jira for label !=

Tags:

jira

labels

I have a label set for some of my issues. When searching labels="ab" I get the relevant ones, but I cannot seem to find the right syntax for asking labels!="ab". How can I query for the ones not equal to ab?

like image 982
Lihilu Avatar asked Jul 10 '12 10:07

Lihilu


People also ask

What does != Mean in JQL?

The " != " operator is used to search for issues where the value of the specified field does not match the specified value. (Note: cannot be used with text fields; see the DOES NOT MATCH (" !~ ") operator instead.)

How do I search for labels in Jira?

Select Quick Filters from the left-hand menu. Create a quick filter by giving it a name and in the JQL box, enter a query such as labels = Test. Press Add. You can then press the Quick Filter from the board to see issues which have that label.

How do you say not in JQL?

Summary. When performing a JQL search for issues not in a category or without a label, for example, using the "not in" or "!=

How do I search for a keyword in Jira?

Just type "Jira Software" into the search field. Advanced search: Find all issues that contain the words Jira and Software, in no particular order. Advanced search: Find all issues that contain the phrase Jira Software.


2 Answers

!= works for me although it only shows issues that have labels If I want to show all issues that do not have a certain label I have to do

(labels is EMPTY OR labels != 'mylabel') 

This behaviour is currently intended by the Jira-Team. A suggestion to change it has been posted in the Developer-Jira and can be voted for.

like image 54
Gertjan Assies Avatar answered Sep 20 '22 05:09

Gertjan Assies


labels != 'ab' 

Will display all issues with labels that differ from 'ab', but not empty labels.

to show those with empty labels too:

labels != 'ab' OR labels is empty 
like image 28
Kuf Avatar answered Sep 22 '22 05:09

Kuf