Forums

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

Filtering with component not working properly

gabriel.olteanu February 8, 2022

Hello,

I am having trouble filtering by component.

 

My default filter is this:

project = "Project" and ORDER BY Rank DESC

Then I added the component "Archived" to my project and tagged some issues with it, while other issues did not have this component on them.

When I modify the filter like this:

project = "Project" and component! = Archived ORDER BY Rank DESC

All the issues with the "Archived" tag are removed but also some issues (not all of them) that don't have the "Archived" tag are removed as well. it's very strange. 

 

My status are correctly mapped out (see screenshot attached)

*(In Kanban mode)Another strange thing that I noticed is that some epics appear as cards (purple color) in the backlog and some epics don't (i.e. you can only see the epic link in the tasks in the backlog view). I am not sure what is causing this behavior. Is it a particular setting in each epic, etc...

* So this component filtering problem happens in kanban mode. But the same thing happens in sprint mode (in sprint mode I noticed that you cannot put epic cards in the backlog view but you can still see the epic section from the left side menu) Again when I modify the filter, some issues are that not tagged with component "Archived" get filtered out. it's strange...

 

What could cause this?

Thanks

Gabriel

Screen Shot 2022-02-08 at 12.11.17 PM.png

Screen Shot 2022-02-08 at 12.24.50 PM.png Screen Shot 2022-02-08 at 12.25.47 PM.png

3 answers

2 accepted

0 votes
Answer accepted
Jack Nolddor _Sweet Bananas_
Atlassian Partner
February 8, 2022

Hi there,

What about this?

project = "Project" AND (component NOT IN (Archived) OR component IS EMPTY) ORDER BY Rank DESC

0 votes
Answer accepted
Bastian Stehmann
Community Champion
February 8, 2022

Hi @gabriel.olteanu ,

The solution in this case is very simple I think. Your current JQL will only select issues with components and where no archive component is present. 

Change it to

project = "Project" and (component! = Archived  or component  is empty) ORDER BY Rank DESC

And it should work as you want.

0 votes
gabriel.olteanu February 8, 2022

thanks guys,

also what about my other comment:

So I have some epics in the kanban mode that appear as a card and some epics (relatively new ones) that don't show up as cards in the backlog view...

Suggest an answer

Log in or Sign up to answer