Forums

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

JQL query when filter component is empty

Mohan Kona September 2, 2024

I'm trying to write a JQL query with component filter with value not equal to Prod, and this gives zero matched issues below is the query used,

 project = <projectName>  AND component != Prod

NOTE: The respective tickets/issues have component field empty

 

1 answer

1 accepted

0 votes
Answer accepted
Walter Buggenhout
Community Champion
September 2, 2024

Hi @Mohan Kona and welcome to the Community!

If you want to find issues with no component on them, you need to search for them explicitly like this:

Project = <projectName> AND Component IS EMPTY

You can combine that with your previous search if you want to find issues with a different component listed than "Prod"

Project = <projectName> AND (Component IS EMPTY OR Component != "Prod")

Hope this helps!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events