Forums

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

Need Jql for scenario. I have two components in each jira. I want to ignore one component.

isha sabharwal
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!
April 21, 2022

Need Jql for scenario. I have two components in each jira. I want to ignore one component. But the jira should be counted.

Example 

Jira key 1 has component A and B. There can be few jira which are component A . 

 Now I want to show a chart for all jira with their component but doesnt want one with component A. 

 

 

1 answer

1 vote
Nic Brough -Adaptavist-
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.
April 21, 2022

Welcome to the Atlassian Community!

I do not think I understand what you are trying to do.  Given your example, the JQL is simple - "Component = B" will get you a list of issues that have component B.  If you leave mention of component A out of the query, you won't get issues that have A on them, except for the ones that have also have B.

I am a bit stuck on what you mean by "ignore component A, but count the issue".

If you mean "show me issues that do not have A", then "component != A or component is empty" is the answer.

If you mean "show me issues with B on them, but not if they also have A", the "component = B and component != A" will do the job.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events