Forums

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

I'd like to configure a quick filter to show all issues related to any of several different componen

kusum kishore October 7, 2023

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?

1 answer

0 votes
Tim Kopperud
Community Champion
October 7, 2023

Hi @kusum kishore 

I don't think this is possible without a third party app. I have done something similar using third party, but not on cloud though. Since components doesn't support "~" you must use the full component name. 

A workaround might be to add a label (or you might setup a hidden customfield) on the issue using automation. Automation can fetch e.g., the first two characters of the component name, and apply it as a label. Then you can make quick filters on labels instead.

Example on the rule below.

com2lab0.png

com2lab.png

com2lab2.png

You will need a rule triggered by Field value changed (component). The rule above is ment as a simple guide about the idea, and you would need to adjust it for your exact need.

If you go for this approach make sure you filter correctly when you do you first bulk update (adding the labels on existing issues).

Edit:

Forgot to mention that you need to take care in case an issue have multiple components. You might filter away component names you don't want a label for. In smart values you can do string comparisons to make sure only wanted components are prosessed.

TimK.

Suggest an answer

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

Atlassian Community Events