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?



1 answer

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
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


247 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