The Issue Collector in Jira will not work if jquery is setup without https
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
After following the examples in Advanced Use of Jira's Issue Collector and adding it to the Announcement Banner, the Issue Collector Link works from the Announcement Banner Page only.
When users try to use the Issue Collector from another location in Jira, such as the system dashboard, the link does not react, and the issue collector never loads for users.
Environment
Jira 9.x
Diagnosis
In general, when the Issue Collector is setup in the Announcement banner, two API calls are made when it is referenced by the user and you can monitor this in a HAR File from the Browser
HTTP GET
when the script is loaded in the page, which ties back to the issue collector functionality in Jira and the collector ID:/plugins/servlet/issueCollectorBootstrap.js?collectorId=$id
HTTP GET
when the user clicks on the button that ties back to the form template:GET /rest/collectors/1.0/template/form/$id
And when testing this after setting this up, we can see that the jQuery script fails to load on other pages with a message indicating that jQuery failed to load on the page in Jira.
Solution:
To fix this update the jquery URL from
<script src="http://code.jquery.com/jquery-latest.js"></script>
to
<script src="https://code.jquery.com/jquery-latest.js"></script>
đź’ˇ this will allow it to load as expected.
Was this helpful?