Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Embedded JIRA-Script causes errors within Bootstrap.js

Kevin Bertuch
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 30, 2018

We embed JIRA script for issue collector with custom button.

It works fine but causes side effect errors with bootstrap.js - in particular when calling a modal or popover with javascript.

It seems that JIRA script collides with bootstrap script so that the bootstrap function calls doesn't work anymore and errors occure.

Is this a known bug and if so - what can I do? 

Here is the embedded JIRA script:

jQuery.ajax({
    url: "https://.../jira/s/c29cbe8c8764bcf3ccfdaca73a4100cd-T/tueslj/72002/d32d90ae7034acfccd3270054dec77e8/2.0.20/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs.js?locale=de-DE&collectorId=82e0deae",
    type: "get",
    cache: true,
    dataType: "script"
});

window.ATL_JQ_PAGE_PROPS = {
    "triggerFunction": function(showCollectorDialog) {
        jQuery("#myCustomTrigger").click(function(e) {
            e.preventDefault();
            showCollectorDialog();
        });
    }
};

0 answers

Suggest an answer

Log in or Sign up to answer