Forums

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

How to filter out one component in a JIra ticket?

Sharif Alsughair February 8, 2023

Hello. I am trying to filter by component from different projects. The problem with the jira tickets is that each ticket has multiple components tagged and I am only trying to filter by certain components as I want to display the information in a dashboard

 

If I use the component not in () and include the components I don't want to appear, the result excludes all the tickets that have these components which isn't what I want to do as some of these tickets also have the components I am trying to filter for.

 

Does anyone know a query that I can use when creating the filter that allows me to filter for specific components in the tickets to showcase on my dashboard? 

 

Example: A ticket has banana, apple, pears as tagged components and another ticket has banana, strawberry, berries as components. I am trying to filter for the tickets that have banana and to display it in a pie chart on a dashboard that shows how many times banana has been used as a component on the ticket but I don't want the other components like apples to also appear on the pie chart. I hope that makes it easier to understand my question

 

2 answers

2 accepted

0 votes
Answer accepted
Kelly Arrey
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.
February 9, 2023

Hi @Sharif Alsughair What are you expecting to see in the other segments of the pie chart?

Sharif Alsughair February 9, 2023

I am trying to filter for 5 different components and see how many tickets has these components on the pie chart. The problem I am facing is what I described above which is that the components I am looking to filter for are used on tickets which have other components as well which I don't want to include in the pie chart.

 

It seems like it is difficult to solve this problem, only way is to create a filter for each component and use the filter counts gadget unless you can help me with a different way?

Nic Brough -Adaptavist-
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.
February 10, 2023

The answer I gave explains why you can't do it, and why it would be the wrong thing to do.

You will indeed need to filter separately.  Or run the results through a gadget that does not try to report on components.

Like # people like this
Sharif Alsughair February 14, 2023

Thanks a lot !

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
February 8, 2023

Welcome to the Atlassian Community!

You can't do this, your reporting would be misleading.

Think of Jira searches as having two parts - the search and the report.  The search simply finds a list of issues to report on, ones that match the question you have asked.  The report then displays the data on the issues that are found.

In this case, the report is being honest - it's showing you that issues that you found with "component = banana" also sometimes have apples, strawberries, pears and berries as components.  It would be wrong to do otherwise.

What you're asking for here is not for the search to change, but the report to drop data you don't want to see.  That's an anti-pattern, you should not have misinformation reports.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events