Issue Background Script not working for developer instance in new issue view

https://developer.atlassian.com/cloud/jira/platform/modules/issue-background-script/

I’m trying to get this to work but I’m getting an error. jira Add-on iframe timed out for add-on
Are background scripts disabled in developer instances?

Hi @WillBender,

Just a guess, but did you include all.js in your iframe? This script bootstraps your iframe.

<script src="https://connect-cdn.atl-paas.net/all.js" async></script>

Regards,
Dugald

I’m not sure how I would do that. I’m using the Issue Background Script module (linked in post) that automatically embeds the javascript file in an iframe. So I’m not manipulating the html at all.

Hi @WillBender,

The resource identified by the url field should be one that serves HTML. This HTML must load all.js. Here’s an example:

<!DOCTYPE html>
<html lang="en">
    <head>
        <script src="https://connect-cdn.atl-paas.net/all.js"></script>
        <script src="./main.js" defer></script>
    </head>
    <body>
    </body>
</html>

I’ll fix the documentation to clarify this.

Regards,
Dugald

Ahhh okay. Yeah that makes sense. Adding that info would be very helpful to that page.