Forums

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

Searching for issue with JQL discarting components

David Gauthier
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!
July 18, 2023

Hello,

 

I'm using Jira Automation. I want a way to dicard some issue based on the components they have. Let me explain :

I have 3 components : A,B,C

Some issues have the component A others B, C, and some have A and B has component.

ISS-1 : A

ISS-2 : A,B

ISS-3 : B,C

ISS-4 : C

ISS-5 : B

 

What I whant to acheive is to retreive the issue that have the component B. Because it's juste an example, but in my world, I have a lots of components and I only want to discard the component A and C.

 

I would like to know if there's a way to say I want to retreive issue that don't only have component A or C.

 

With the current example it should return ISS-2, ISS-3 and ISS-5 but not ISS-1 and ISS-4 because they only have the components that I want to discard.

 

Thanks! 

 

2 answers

3 votes
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.
July 18, 2023

Welcome to the Atlassian Community!

Try

component = B and component != A and component != C

David Gauthier
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!
July 20, 2023

Thanks for the answer,

 

This thing works when I explicitely specify component = B. But Imagine I have a list of 30 components and this list can change over time. If I need to put every component like that it will miss some of the component over time. Nobody remembers to adjust an Automation when they add a component.

 

Thanks!

0 votes
Bill Sheboy
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.
July 20, 2023

Hi @David Gauthier 

What problem are you trying to solve by doing this?  Knowing that may help the community to offer other suggestions.  Thanks!

Until we know that...and until we see your complete automation rule details...

Perhaps try this to return issues which have at least have component B:

project = yourProjectName
AND component IN ( B )

And if "B" is not a static value, you may need to adjust to use a smart value for the JQL condition.

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events