Forums

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

Any was to filter components that contain other components

Harvey Bennett
Contributor
August 4, 2020

Not really sure of the best way to word this but I'm wondering if there is any ways to not include in a JQL search a component that isn't tagged with other components. I have provided an example of the dataset I'm working with. I would like to return all the ones that do not contain "Hardware" strictly. I would like to only see FC-48 and FC-31 drop off since they are the only ones that are tagged with only Hardware and not other components. But I want to keep the other ones such as FC-32 even though its tagged with Hardware I need it show up still since it has another component called Assembly and I need to still pull stuff that has other components even if its tagged with the Hardware. My current filter removes anything that has "Hardware" as the component. Does anyone know any way of doing this?

 

My current filter that I'm working off of: project = "FC" AND issuetype = Task AND (component not in ("Hardware") OR component is EMPTY)image.PNG

1 answer

1 accepted

0 votes
Answer accepted
Muthu Thiruppandy
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.
August 4, 2020

If your component list is limited,

- you can add an additional "OR component in ("x", "y"....) 

          basically include all the components

- or just write a "....component in ("x", "y"....) OR component is EMPTY"

  and do not include the 'Hardware' in the IN list above

Harvey Bennett
Contributor
August 4, 2020

Oh okay. I was hoping there might be a better way instead of explicitly stating the knowns which might grow over time and need readjusted. Was hoping for a dynamic approach. Thanks anyways!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events