Forums

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

JQL Help w/ Components

Noah Moore
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 25, 2022

Hello,

 

Currently I have a board that excludes a few components (Example: Let's say my project has Components X, Y, & Z)

I want to exclude tickets with ONLY component X, but if a ticket has Component X & Component Y, I want it to appear on the board.

Anyone have any suggestions on how to to accomplish this?

1 answer

1 vote
Craig Nodwell
Community Champion
July 25, 2022

Hi @Noah Moore I would suggest that you do this filtering with Quick Filters instead of applying it to the board filter.  

Noah Moore
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 25, 2022

I'd like to avoid this approach, but appreciate the response!

 

If I have a project with 35 components and multiple boards displaying specific components of that project, having the team use quick filters could go wrong as many are not Jira professionals.

Like Craig Nodwell likes this
Craig Nodwell
Community Champion
July 25, 2022

Hi Noah, this JQL works for me with three test components.

(project = "ProjectName") AND (component not in ("Component Two") OR (component = "Component Two" AND component = "Component Three" AND component != "Component One"))

The output in the list view.  There's at least 6 tickets with Component Two the only ones that show are those associated to Component Three.  
Hope this gets you started.


MicrosoftTeams-image (2).png

Like Noah Moore likes this

Suggest an answer

Log in or Sign up to answer