Javascript files are not loading on the Pop screen of Jira 5.1

Hi, we have Upgraded our jira from 4.3 to 5.1. But the Javascript files, which we had created for Jira 4.3 are not loading in the pop screen provided by Jira 5.1. is there any way to do that? As for now we have disabled the Pop up. But now we have to load some of them in workflow screen which is a absolute pop up.

3 answers

You have to surround your js with something like this

<script type="text/javascript">
AJS.$(document).bind('dialogContentReady', function(event, dialog) {
  <!-- your script here -->

This works for simple scripts within the field description, like changing some layouts etc. I've not tested this with complexer ones.

For a script within the announcement banner we use this

<script type='text/javascript'>
AJS.$(document).ready(function() {
    </script><!-- your script here -->

Here is some background info:



We had also faced similar problem but it was only in the pop screen of "Create", so we had disabled the same using Java script in Announcement.

But in the worrkflow pop up screen, there was no problem.



Hi Vineet , are you sure the javascript is compatible with JIRA 5.1 ?

You will need to use tools like firebug to check if your script is throwing errors . If the script is compatible you might need to add some delay in the script execution. I was facing a similar issue which i got sorted out by using the setTimeout() . I added a delay of 2 sec and the script worked on the popup/modal window

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,232 views 5 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you