I'm trying to add more content to my JIRA dashboard by using the HTML capabilities of the "Text Gadget". Things seem to run great the first time, but I get an "Unknown error occurred rendering this gadget" if I try to edit the gadget's content.
Here's the specific JS I'm adding:
<h3><div id=”milestone_countdown”></div> days left!</h3>
var next_milestone=new Date(today.getFullYear(), 10, 12);
document.getElementById("milestone_countdown").innerHTML = Math.ceil((next_milestone.getTime()-today.getTime())/(one_day));
And the error I'm getting when I inspect the element in the page:
Uncaught TypeError: Cannot set property 'innerHTML' of null
Error rendering gadget with id '15053': Cannot set property 'innerHTML' of null TypeError: Cannot set property 'innerHTML' of null
What am I doing wrong and how can I fix this? Thanks!
...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG