Jira Issue Collector is not activated for Custom trigger style

Created on 22 September 2016, over 8 years ago
Updated 13 September 2024, 7 months ago

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.

Feature request
Status

Closed: outdated

Version

1.3

Component

Code

Created by

🇪🇸Spain SalvadorP Alicante

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024