Forums

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

JIRA issue with empty component

Klinta Šverna
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 23, 2021

Hi!

How to search issues with empty component (component = EMPTY), excluding from search results those issues where the component is not set (i.e., the projects / issue types that don't use components).

2 answers

0 votes
abelalia87
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 24, 2021

Hi @Klinta Šverna , 

You can use component = empty or component in (empty). This will return all issues with empty components. To exclude projects not using components, let's consider this scenario. 

  • Projects not using components: Marketing Project, Project ABC
  • Projects with components: Test Project, VM Project
  • issuetypes with components: New Feature, Customer Reported Bug

Given the following scenarios you can use these JQL. 

Project in ("Test Project","VM Project") and issuetype in ("New Feature", "Customer Reported Bug") and component = empty  --> Will return issues with empty components under Project and issuetype using components. 

Hope this helps. 

0 votes
Hana Kučerová
Community Champion
November 23, 2021

Hi @Klinta Šverna ,

welcome to the Atlassian Community!

Unfortunatelly I don't think it's possible. You can exclude some projects from search using 

project not in (KEY1, KEY2, ...)

But you would need to look into these project, whether there are some components or not (or use REST API to get this information).

Suggest an answer

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

Atlassian Community Events