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

Emelie 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

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 18, 2021

Add the following…

… AND Component is not Empty

Emelie June 18, 2021

How do I add that to the query? 

Emelie 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 21, 2021
try this...

project="myProject" AND (component != XYZ) AND (component is not empty)
Piotr Janik February 3, 2023

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.

Suggest an answer

Log in or Sign up to answer