Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

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, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events