How to insert Jira issue/filter in "Total Issue Count" format with ONLY Number (without Issues text)
Asked by Shailesh Vastrad:

I am trying to use Chart Macro with the table of content generated using Jira Issue/Filter macro with "Total Issue Count" display option. I can see the Chart Preview correct, but when the page is previewed/published, it does not show any graph.

The issue seems the Preview/Published page is not able to generate the chart for "x issues" cell values.

**Can you please let me know if this is chart issue and is there any way to show the Total Issue Count in the table, with only number (without Issue text)?**

**![2020-08-27_10-13-15.png](https://community.atlassian.com/t5/image/serverpage/image-id/108145i15C3D82A0058E15E/image-dimensions/575x442?v=v2 "2020-08-27_10-13-15.png")**


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Shailesh Vastrad](/t5/user/viewprofilepage/user-id/2728293) ,

The standard Chart macro doesn't work with dynamic macros such as the Jira Issues macro.

Try to use the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app for your case. Let me show you two options:

* based on your manually created table and multiple Jira issues macros
* based on pivot table and only one Jira Issues macro

**Option 1**

1. Wrap your table in the [Table Toolbox](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Toolbox+macro) macro and make the following hierarchy: table -\> [Table Transformer](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Transformer+macro) -\> [Chart from Table](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Chart+from+Table+macro) macro.

![Vast 1.png](https://community.atlassian.com/t5/image/serverpage/image-id/108179iFB75822E60B45FFC/image-size/large?v=v2&px=999 "Vast 1.png")

2. Go to the Table Transformer settings, choose the Custom SQL and enter your query to cut out the "issues" word: **SELECT T1.'Assignee', T1.'April 2020' -\>split("issues")-\>0 AS 'April 2020', T1.'May 2020' -\>split("issues")-\>0 AS 'May 2020', T1.'June 2020' -\>split("issues")-\>0 AS 'June 2020' FROM T\***

This step is optional: you'll get the required chart without any cutting. But I've seen such request in your original post and decided to show this moment - your result table will look more compact and neat.

**![Vast 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/108180iAE7ED8D120F5453B/image-size/large?v=v2&px=999 "Vast 2.png")![Vast 3.png](https://community.atlassian.com/t5/image/serverpage/image-id/108181iA59F732973E6B11C/image-size/large?v=v2&px=999 "Vast 3.png")**3. Go to the Chart from Table macro settings, choose the Horizontal table orientation in the Adjustments tab, and create your time line.

![Vast 4.png](https://community.atlassian.com/t5/image/serverpage/image-id/108182iB69EF511210EF64C/image-size/large?v=v2&px=999 "Vast 4.png")If you publish the page, your chart will be still here.

![Vast 5.png](https://community.atlassian.com/t5/image/serverpage/image-id/108183i817C1D8B57419409/image-size/large?v=v2&px=999 "Vast 5.png")

**Option 2**

1. Wrap your Jira Issues macro in the [Table Toolbox](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Toolbox+macro) macro and make the following hierarchy: Jira Issues -\> [Pivot from Table](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Pivot+Table+macro) -\> [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) (optionally) -\> [Chart from Table](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Chart+from+Table+macro) macro.

![Vastrad 1.png](https://community.atlassian.com/t5/image/serverpage/image-id/108170i65F344448156A70F/image-size/large?v=v2&px=999 "Vastrad 1.png")

2. Create your pivot: aggregate created issues by month. The required settings and the preview are shown on the screenshots below.

![Vastrad 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/108171i6E5CBAA81E914765/image-size/large?v=v2&px=999 "Vastrad 2.png")![Vastrad 3.png](https://community.atlassian.com/t5/image/serverpage/image-id/108172i75B74541A4E01B15/image-size/large?v=v2&px=999 "Vastrad 3.png")

Here we show the simplest example, but you'll be able to create different pivots based on assignees, issue types, etc.

3. As we have a lot of old issues for the project, we filter them so that to show only 2020 (you can skip this step, it's optional).

![Vastrad 4.png](https://community.atlassian.com/t5/image/serverpage/image-id/108173i0043A1A076370661/image-size/large?v=v2&px=999 "Vastrad 4.png")4. Now you can easily create your timeline.

![Vastrad 5.png](https://community.atlassian.com/t5/image/serverpage/image-id/108174i94B4404312D95AE1/image-size/large?v=v2&px=999 "Vastrad 5.png")And here is a screenshot of the published page - our chart is still there.

![Vastrad 6.png](https://community.atlassian.com/t5/image/serverpage/image-id/108175i2B23CEC788F6E3D2/image-size/large?v=v2&px=999 "Vastrad 6.png")


Tags: cloud

chart

confluence-cloud