Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to filter out one component, but seeing the rest?

Emelie
Contributor
June 18, 2021

Hi all, 

I want to filter out one specific component. When I googled, I read that the correct syntax is: 

project="myProjet" AND (component != XYZ)

The problem here is that all issues without any component, are also excluded. That's not what I want. I want to show everything, but not component XYZ

How do I do that? 

Thanks

Emelie 

1 answer

1 accepted

1 vote
Answer accepted
Jack Brickey
Community Champion
June 18, 2021

Add the following…

… AND Component is not Empty

Emelie
Contributor
June 18, 2021

How do I add that to the query? 

Emelie
Contributor
June 21, 2021

I added this query:

project="myProject" AND (component != XYZ) AND (component != empty)

But it still filters out all issues without components. 

Jack Brickey
Community Champion
June 21, 2021
try this...

project="myProject" AND (component != XYZ) AND (component is not empty)
Like • Juliano Carlos likes this
Piotr Janik
Contributor
February 3, 2023 edited

everything, but not component XYZ.

That would be

project="myProject" AND ((component != XYZ) OR (component is empty))

although I fail to understand why the OR (component is empty) part is necessary (I tested it on my instance, it really is). The operators reference (https://confluence.atlassian.com/jirasoftwareserver/advanced-searching-operators-reference-939938745.html#Advancedsearchingoperatorsreference-NOT_EQUALSNOTEQUALS:!=) doesn't seem to cover this case.

EDIT: OK, I'm not sure if I missed that part or if the text has been updated, but the operator reference does cover this case:

The operator won't match a field that has no value (an empty field). For example, component != fred will only match issues that have a component and this component isn't "fred". To find issues that have a component other than "fred" or have no component, you should type component != fred or component is empty.

(Though I still fail to understand why anyone would have designed it that way).

Juliano Carlos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2024

Thanks a lot!! helped me to solve in my project!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events