When we log defects, teams add various labels. However, I am interested in tracking only ones that are impacting UAT.
Example; Defect may have label like Team1, Medication, UAT_ImpactedOne
Another defect may have labels: Team2, Vaacine
Third defect may have lables: Team2, UAT_ImapctedTwo.
My target is to have widget which has two dimensional chart with Status of defects on X axis and labels on Y axis, but ONLY those defects which have those UAT labels in them
Can someone help please?
I would split the idea up into two parts, one of it like Dirk said to use a separate environment custom field. Maybe I am wrong but the deeper ask here was for a JQL query for the labels, yes?
Well, you can search for labels:
project = XYZ AND labels IN (UAT_ImpactedOne, UAT_ImpactedTwo)
However wildcard searches are not there yet (https://jira.atlassian.com/browse/JRACLOUD-23038) so you would need to list them all for a query.
After that I see nothing what would speak against using a dashboard gadget.
After a few days of searching and trials around I found the perfect solution for this problem with multiple Labels. I'll share it here since it drove me crazy for a few days and I can imagine other people might benefit from it.
Unfortunately it's not a native/free solution, but a plugin called Custom Charts. It basically allow you to select only the Labels you want to see in your reports/charts and hide the others. Also very simple to use -> just click the Show/Hide button. And the best part is works for pretty much any other fields like Components (which have a similar problem).
We have a similar issue, which I don't believe can be resolved with the JQL filter. I want to display statistics on our dashboard for only specific labels (Q1-4). The issue I'm facing is this...even when creating a filter to show only issues containing one of these 4 labels, the statistics gadget will also display every other label on the same issues. The list gets very long and we really only want to see count/percentage for labels Q1-4. Is this possible with any gadget?
We don't wish to create a field just for this purpose since labels work just fine in every other aspect. Hoping for a magical answer on this one. Thanks!
You can simply search for issues that have labels with UAT in them:
issue in wildcardMatch("labels", "*UAT*")
and use this filter in your dashboard gadgets. You can find out more in our docs.
I hope this helps!