js resource file not available under certain url (built by scriptrunner)

I am using scriptrunner to build a dialog (using script fragments). The menu button that triggers the dialog is placed in the system.navigation top menu (next 'issues', 'boards'..etc).User selects params from dialog and submits dialog. Dialog then queries DB and builds custom filter (via Rest endpoint) and returns response containing the url pointing to the newly created filter. If user selects an issue from the ones displayed by the filter (in which case the url becomes like this: https://jira-server-address/browse/JRA-16?filter=1111 for example) and then clicks the button to trigger the dialog again, the dialog shows but the javascript resource that controls it doesn't show unless user refreshes the page. In all other scenarios, the js files is served properly with the dialog and operates very well.

The js web-resource item has atl-general context.

What is stopping the js from being served in the case explained above?

 

Thanks

1 answer

0 vote

Do you mean atl.general rather than atl-general ?

Is your javascript actually loading? You can add some logging to it to check that. If so it sounds like more of a problem with the way that you are binding the dialog controls using your javascript. Can you share a minimal example of your code that reproduces the problem please.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

357 views 0 6
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