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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

165 views 0 4
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