Forum Discussion

SJain15's avatar
SJain15
New Contributor
2 days ago

Pie chart to display test coverage and no coverage

Hello,
I want to create a Jira pie (donut) chart report, to display test coverage and no coverage (just two groups). Pls can someone suggest if it is possible using JQL filter criteria and how.
GroupBy clause is not available in JQL. 

I'm using following filter to display the test coverage report at the moment. However, I'm unable to display both coverage and no coverage in a single chart.

project in ("ABC", "XYZ") and issuetype in (Defect, Story) AND issue in hasTestCoverage()  

Thanks.

1 Reply

  • I've not tried this but can see the difficulty trying to make it work.  Possible solutions:

    1. Return all issues, then use the gadget to split issues by Test Coverage, or if that's not available, another field like labels or a custom field
    2. I'm thinking you could create two separate filters: one for coverage, one with no coverage, and then have a parent filter that returns the results of both child filters
    3. Use Jira Automation to assign a custom tag to define coverage/non-coverage and use that field in your JQL