Affects Version/s: None
Fix Version/s: 5.7.0
Sprint:SR4C Squad 129, SR4C Sprint 130
ScriptRunner for Confluence(5.4.50)
When creating a custom script macro any css files placed in the script root folder (<confluencehome>/scripts) are not being found.
The CSS will be applied if it is added through the CSS script console tab.
Steps To Reproduce
- Add CSS file to script root directory
- Add a new custom script macro
- Apply CSS file within the Macro CSS style file tab
The CSS will be applied to the Custom Macro.
The CSS file is not found and not applied to the Custom Macro
This is actually a documentation issue. The problem is that the scripts directory in your home directory (or whatever directory you point to for the CSS) needs to be setup as a web resource directory as detailed in https://scriptrunner.adaptavist.com/latest/confluence/fragments/WebResource.html .
This should be documented and we should have some "just in time" help next to the CSS field in the UI so that this is clear.