Forums

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

Adding Custom Javascript (Charts.js) to confluence page

Albert Gil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2020

Hi all,

Currently trying to add custom charts to confluence page, however i would like the data in the table cells to link to my JIRA instance for dynamic data.

When i use the built in Insert JIRA Issue/Filter macro the resulting output in the table cell is not exactly a number i believe this is what is causing my charts not to render properly.

Pictured is an example of what i mean. (Cherries, Series 1)

Atlas1.PNG Atlas2.PNG Does anyone know of a work around for this issue? I've looked into user macros but not sure how to input JIRA filters are parameters for input.

 

I imagine if the "23 Issues" was changed to just "23" the chart would work fine as well.

 

Any help would be appreciated, thanks again.

 

 

 

 

 

1 answer

1 vote
Katerina Rudkovskaya _Stiltsoft_
Atlassian Partner
July 30, 2020

Hi @Albert Gil ,

To remove "issues" from JIRA Issue/Filter macro, you can use the Table Transformer macro of the Table Filter and Charts for Confluence app.

Please wrap your table with it and use REPLACE() function in your SQL query:

2020-07-30_16h20_21.png 2020-07-30_16h21_33.png 2020-07-30_16h21_39.png

By the way, our app also includes Chart from Table macro which allows you to create Radar chart as well.

But note that we have one month of a free trial.
Thus, you can  install the app with an evaluation license and "play" with all our macros.

Best regards,
Katerina

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events