Issue collector button displayed but doens't trigger the issue collector window Edited

Hi,

I am using an issue collector with JIRA 7.2 and Confluence 5.9

my issue collector sript is:

<html>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="xxxx"> </script>
<script type="text/javascript">
window.ATL_JQ_PAGE_PROPS = {
"triggerFunction": function(showCollectorDialog) {
//Requires that jQuery is available!
jQuery("#feedback-button").click(function(e) {
e.preventDefault();
showCollectorDialog();
});
}};</script>

<h2> Create Issue </h2>
<input type="button" href="#" style="background-color:white; text-color:white" id="feedback-button" class="button" value="Report a Bug">
</body>
</html>

when i just copy and paste this code in a ".html" page, it displays a button and clicking on the button displays the issue collector and everythign works fire..

but when i embed this code into confluence using the "Markdown" macro, the button is being displayed but clicking on the button is not displaying the issue collector. 

Also, I don't have access to HTML macro.

Thank you!! :)

1 answer

0 vote
Steven Behnke Community Champion Jul 19, 2017

I can't imagine this is going to work with the Markdown Macro. You need the ability to embed javascript.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,298 views 25 10
Join discussion

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