Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Combination Pie Chart with JQL tables

Matt Wilson October 13, 2020

My goal is to have a single PIE chart that will produce a percentage based on values from two tables being fed by JQL.

JQL1 - produces story points
JQL2 - produces bugs

 

I'll need to total both JQL1 and JQL2, which seems to be no issue but produces 2 pie charts, and then have the final pie chart complete:

JQL2 / JQL1

to show defect density as a pie chart percentage

2 answers

2 votes
Tom Harris - Old Street
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.
October 14, 2020

Hi @Matt Wilson ,

This should be possible using our app Custom Jira Charts for Confluence. It's a charting and reporting macro that allows you to create custom reports in seconds.

Using the Custom JQL feature you can total any values you need directly on the pie chart without writing any additional code.

You can also change the COUNT selector to change the count from Issues to Story Points, or any other value you need.

Custom JQL Pie CHart.png

 

You can try this right now for yourself on our interactive app playground: https://www.oldstreetsolutions.com/jira-reporting-playground

I hope that helps answer your question 🙂

Kind regards,

Tom

Custom Charts Product Manager

2 votes
Katerina Kovriga {Stiltsoft}
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.
October 14, 2020

Hi @Matt Wilson ,

You may check the Table Filter and Charts for Confluence app.

You'll need to wrap your Jira Issues macros and an additional mini-table first into the Table Transformer macro and then into the Chart from Table macro.

Transformer 1.pngThe first step is to sum your story points and count the number of your bugs. If I've got your case slightly wrong, keep in mind that it is just an example and the Table Transformer macro allows you to perform various kinds of calculations.

Transformer 2.pngHere is the SQL query for you to copy:

SELECT (SELECT T1.'Issue Summary' from T1) as 'Issue Summary',
(SELECT SUM(T2.'story points') from T2) as 'Total Stories',
(SELECT COUNT(T3.'Key') from T3) as 'Total Bugs'

Transformer 3.png

Now let's create the required Pie chart:

Transformer 4.pngTransformer 5.pngIf you visit our documentation (I've given links at the beginning of the response), you'll see a lot of different use cases: our macros are flexible and can be combined differently to simplify and visualize custom reports.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events