Hi,
Seems the code for the action button which triggers the Jira Issue Collector is not being injected.
In the admin form section in "Code" field we have this code:
<script type="text/javascript" src="<jira_js_url>"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
window.ATL_JQ_PAGE_PROPS = {
"triggerFunction": function(showCollectorDialog) {
//Requires that jQuery is available!
jQuery("#myTrigger").click(function(e) {
e.preventDefault();
showCollectorDialog();
});
}};
});
</script>
The url is generated and is injected properly in the code, but the function which triggers the showCollectorDialog() is not being embedded.
In the page where we need the JIC, we added a button with this code:
<p><button class="btn btn-info" id="myTrigger">Click to Report</button></p>
When we click it, nothing happens, no errors shown in console.
We tried to add manually the JS which reacts to the button click in jira_issue_collector.js file and it works.
But I'm not sure if that's the way to go.
Is this a problem of the module?
Or am I using it in the wrong way?
Thanks in advance.
Closed: outdated
1.3
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.