Unable to trigger issue collector from a button on my confluence page.

inderpreet singh March 25, 2021

I have this is my html macro:

<head>

<!-- This is the script for the issue collector feedback form -->

<script type="text/javascript" src="myurl/s/fd1d5e3664803a732d58e2dd2f01c552-T/ik4gn0/809001/b6b48b2829824b869586ac216d119363/4.0.1/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=dbb6506a">

</script>

<!-- This is the script for specifying the custom trigger. Replaced 'myCustomTrigger' with 'feedback-button' -->

<script type="text/javascript">

window.ATL_JQ_PAGE_PROPS = { "triggerFunction": function(showCollectorDialog)

{

//Requries that jQuery is available!

jQuery("#feedback-button").click(function(e)

{

e.preventDefault();

showCollectorDialog();

});

}

};

</script>

</head>

 

<body>

<h2>Jira Issue Collector Demo</h2>

<a href="#" id="feedback-button">Report feedback</a>

</body>

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events