I have tried various advanced searches and cannot get the syntax right. I want to look for all issues of certain status (for example, open or reopened or inprogress) but exclude any with a certain label (for example OnHold). Tried every kind of NOT but cannot get it to work. HELP please.
had the same problem, solved it this way:
status
in
(
"open"
,
"reopened"
,
"inprogress"
) and (labels not
in
(
"OnHold"
) or labels is EMPTY)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Works perfectly
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.
The case this doesn't resolve is for issues with any other labels.
In JIRA on demand this query returns the same issues as a query returning only issues with no labels. The inclusion of not in ("XXXX"
)
makes no difference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You saved my day :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works for me just fine on JIRA v6.4.1. I didn't think to consider EMPTY like a NULL value that requires an explicit comparison. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect, just what I was looking for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice. Many 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.
Really saved my day thanks a lot🙂
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.
Nice. thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Brilliant!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Top stuff. Thanks Miroslav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
THANK YOU!!!!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Big help here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome!
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, works fine :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Woot woot for this post... learned something new about JQL today.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With this JQL :
project = TEST AND status in (
"open"
,
"reopened"
,
"inprogress"
)
AND assignee in (usertest) ORDER BY created DESC
i have noting in "reopened"
status, so the JQL is giving me an error :
The value 'reopened
' doesn't exist in the field 'status'.
Do you have any idea how can i correct it ?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked ! thanks a lot !
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have issues logged that have a "DEMO" label. operationally I want to filter these out, prety much as the OP. There wasn't a proper anser above, a couple of fragments so I eventually came up with:
and (labels is empty or (labels is not empty and labels not in (DEMO)))
This means if it's empty, list it. If it has any label, filter out issues that have the DEMO label. Hope that clarifies things.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are my hero!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately this doesn't seem to work for me.
the query is slightly more complicated:
project in (WIN) AND issuetype in (Epic, Initiative) AND status not in (Delivered, Closed, Cancelled) AND (labels not in ("Prime-Backlog") OR labels is EMPTY)
I get the same number of issues back with or without the last AND clause and get labels I don't want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Signed up just to say thank you and upvote. Helped me with my issue! Nigel Johnson!
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.
This makes the trick indeed:
"
((labels is not EMPTY and labels not in (demo)) or labels is EMPTY))
"
For me the problem was before, that when I used simply the labels != demo, on top of filtering the items with "demo" labels, it as well filtered the issues with no labels.
Thx for the hint. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice :-)
I used it the other way:
(labels is EMPTY or labels not in (Household))
which worked, BUT I dont understand why the to test for EMPTY is necessary.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks in 2020 one more time :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still relevant in 2022, thanks alot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
May be caused by the problem I report in
Seems to search for A and not B, you must say
A AND NOT B
not
A NOT B
which the documentation says.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
status in ("open","reopened","inprogress") and labels not in ("OnHold")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried adding a screen shot but it isn't showing...I'll try converting to JPG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It takes it but says no issues found, and there ARE issues with that label!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Notice, I can use "in" to find ones with the label, and it works, but the "not in" returns no entries, when there should be LOTS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you say NOT in, it will find issues without that label but in the mentioned statuses. Are you saying you have issues in those states without the label?
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.
I would raise the issue with Atlassian support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
PS. In Progress is two words, I fixed that.... still doesn't work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct. I have many issues in those statuses without that label. They either have NO label, or some other label, but the query returns NO entries whatsoever.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This does not work for me even a little bit.
How can I say that the text field does not contain a specific string?
This is for INCLUDING the text "missing":
project = MYPROJECT AND status = "To Do" AND assignee in (EMPTY) AND reporter in (jiramail) AND text ~ "missing" ORDER BY created DESC
How can I tweak this to make it show me issues that DO NOT INCLUDE the text "missing"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually for me this worked:
labels not in (DEMO) OR labels is EMPTY
The OR clause is critical
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had same issue. Had difficulties to filter Labels. I am using version 7.5.3
(labels not in (X,Y) or labels is EMPTY ) and status in (Backlog, Analysis).
Adding the "labels is empty" helped.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem is correctly identified above by Thomas Tulinksy. Beware that adding "labels is empty" appears to help (i.e. you suddenly see results, hurrrah) but does not show any issue that has a different label (e.g. "Z")
To overcome it, you must use the AND NOT exactly as Thomas described.
Status in (Backlog, Analysis) AND (NOT labels in (X,Y) OR labels is EMPTY) ORDER BY LABELS ASC
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.
Really saved my day thanks a lot☺
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help This helped me with a query I was trying to get to work.
status in ("current sprint") AND (labels not in ("Tasking") OR labels is EMPTY)
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.
Hi
Check this, may be usefull for you,
https://answers.atlassian.com/questions/73065/labels-does-not-contain-is-not-working
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
tried this as well without sucess.
I got zero results back even if i have issues from that project without label = xy
I am using JIRA 5.2.1
Any more suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
project = A AND (labels NOT IN (xy) OR labels IS EMPTY)
It behaves like SQL's NULL, where any comparison involving NULL (except for IS NULL) is false.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How do i get all issues without a specifc label xy
the query
project = A AND not labels = xy
is not workiing
can anyone help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe try
project = A AND labels NOT IN (xy)
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.