How can I see what is causing my user macro to fail?

I'm working on a user macro that will generate javascript that would allow my confluence users to render RallyDev content on a page. If I take my code and paste it inside Bob Swift's HTML macro on a page it works just fine. When I convert it into a user macro with no parameters it turns into a cannot render template error.

Where can I see more detail on what could be causing the error in the user macro? Is there a logfile or something I can look at?

2 answers

1 accepted

2 votes
Accepted answer
Peter Koczan Atlassian Team Dec 04, 2012

Hi,

I suspect you may be hitting this bug: https://jira.atlassian.com/browse/CONF-26104

As a workaround you may want to try to put the javascript code in a .js file on your webserver and simply include that file, that will prevent Confluence to alter the javascript code within the user macro (I experienced CDATA encapsulation to be added into javascripts)

For my JQuery-Scripts it helped to replace all "$" with "jQuery", maybe that's an issue as well.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,153 views 0 8
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you