Forums

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

Quick filter for multiple Components

Johanna Zetterberg August 23, 2019

I'd like to configure a quick filter to show all issues related to any of several different components. For instance the components are named like AB1, AB2, AB3, CD1, CD2, CD3, EF1, EF2, EF3, etc. Can i write a JQL "OR-statement" that includes all components that have AB or CD or EF in their names or do I have to list all components i full name?

2 answers

2 accepted

1 vote
Answer accepted
Mohamed Benziane
Community Champion
August 23, 2019

Hello @Johanna Zetterberg 

Unfortunately the component field do not supporte the "~" operator, so you need to list all fullname of you component in a "list" like this :

component in (mycomponent1, mycomponent2...)

 

Hope this helps 

Johanna Zetterberg August 23, 2019

Thanks. Yes indeed. I'll do it that way unless we don't have the plugins referred above.

Rudiger Wolf February 16, 2021

This assumes that a component field will only ever have a single component value.

You might have an issue that contains two components.  Both 

mycomponent1 and mycomponent2 in the components field.

The above does not catch that.

Like Eric Hoppe likes this
1 vote
Answer accepted
Ilya Turov
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 23, 2019

if you want to do it without using any plugins then yes, you have to list all the components you want to have (component field doesnt support ~ operator)

but if you have let's say scriptrunner, it has a componentMatch JQL in their arsenal, which can search by regEx. guess other plugins might have something similar, just have to look for it

Johanna Zetterberg August 23, 2019

Thanks. I'll check that.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events