I currently have a working jira add-on that displays ticket metadata using a soy template. I am trying to incorporate an interactive d3.js chart into this but cannot find a way that works. When adding the d3 code straight into the template within script tags, i can successfully render d3 objects on the dashboard. however, i get errors when trying to access and use my soy params eg $array within my js code. I can access and display these params within the template and outwith the script tags without issue though.
this code shows a working template that displays d3 objects within js code within the template, and my ticket metadata outside of the js code.
i have tried using |escapeJs to access the params from within the <script section but haven’t been able to get this to work.
i have also tried to link to the d3 code from an external js file, but i haven’t managed to get this to work either.