My Question is this: Is there something in Confluence blocking the output of the console.log method?
There's no errors in either the velocity markup or JS. Try it for yourself. Create a macro, set a variable to something and have the console.log method run that variable. Even simple tests like this come back empty but if I use the command line in Chrome Dev, I see that in fact that foo = "foo";
var foo = "foo"; console.log(foo);
It works fine for me. Did you wrap your JS in a <script> tag? Here's what my full macro looks like:
Hi my Community friends! For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs