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

This widget could not be displayed.

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 Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

522 views 3 19
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