-
Type:
Bug
-
Status: Done (View Workflow)
-
Priority:
High
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 5.7.0
-
Component/s: None
-
Labels:None
-
Sprint:SR4C Squad 129, SR4C Sprint 130
-
Story Points:3
-
Critical Points:0.6
Versions Tested
ScriptRunner for Confluence(5.4.50)
Confluence 6.9.0
Description
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
Expected Outcome
The CSS will be applied to the Custom Macro.
Actual Outcome
The CSS file is not found and not applied to the Custom Macro
Fix
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.