Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Amro Hassaan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 14, 2016

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 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2016

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
TAGS
AUG Leaders

Atlassian Community Events