-
Type:
Bug
-
Resolution: Obsolete
-
Priority:
Low
-
Component/s: Work Item - Create - Global
Hi
I'm attempting to use the Issue Collector via JavaScript using the $.ajax() call as mentioned in the documentation/issue collector page, although having tried with the <script> I have the same issue.
$.ajax(
{ url: "https://stepweb.atlassian.net/s/en_US-2hy5ll-418945332/6007/155/1.3.2/_/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?collectorId=<my collector_id>", type: "get", cache: true, dataType: "script" });
Before including the script with the above ajax call, I have the following:
$().jquery = "1.8.2"
Afterwards, I have: $().jquery = "1.2.6"
This then breaks my application since I'm relying on methods in the latest jquery libraries.
I see there is code, at the top of the file included, however, that seems to execute fine.
The issue happens on both IE and Chrome. If I comment out the lines at the top of the JS file, this suddenly works fine:
// $ = jQuery.noConflict(true);
// if (typeof window.jQuery === "undefined")
// if (typeof window.$ === "undefined")
{ // window.$ = $ // }