Forums

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

Stuck trying to configure a css file into a script runner fragment

Seth Bennett
Contributor
September 13, 2022

I have a local JIRA server, version 9.2. I'm attempting to use a configured resource to import a CSS file and make changes to how certain elements look on the front-end of my JIRA issue details page.

This is the YouTube tutorial I'm trying to implement:

https://www.youtube.com/watch?v=pIC_iUsvKXs&list=PL_E9T0Z4ua164VpnStW9mUTnXXJptcQlO&index=23&t=372s

This is the documentation on setting up the CSS file:

https://scriptrunner.adaptavist.com/5.5.3/jira/fragments/WebResource.html

Following this documentation I have:

- used the default scripts directory (which contains my "custom_css.css" file

- Next I pasted the following code into my setenv.sh (or .bat) script like so:

 
JVM_REQUIRED_ARGS='-Dplugin.resource.directories=/app/home/scripts-Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory 

I've followed these steps, but still get the error: "Could not find custom_css.css in configured resource directories: You need to configure at least one alternate resource directory before using a web-resource, see the documentation

What am I doing wrong? 

 

 

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 21, 2019

Hey Bart,

That page can be a bit much to digest as it's intended to be a comprehensive listing of inbound and outbound access you might need to add.

Since the Jira application itself (and not a CDN) will be attempting to access your GitLab CE, the range of IPs you'll need to whitelist is limited to the "Atlassian Cloud" section of that document. For short, you can grab the current list at https://ip-ranges.atlassian.com.

If you're also looking to do port restrictions, Jira Cloud would at most be attempting to use the GitHub Enterprise listed ports of 443, 80, 22, and 9418. I would expect things to work even with just 443 open.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer