Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,801
Community Members
 
Community Events
165
Community Groups

plugin.resource.directories

Can anyone tell me more about this " plugin.resource.directories.". I want to use this to add javascript to my Jira. And i'm unable to find it and have no idea about what it is.

2 answers

Hi everyone, I solved it my self the problem with windows by writing the folder in the tomcat setting. Here the procedure:

  1. Open cmd
  2. tomcat8w.exe //ES//JIRASoftware140619081519
  3. Go to Java tab
  4. In the JavaOptioon write (whitout quote) -Dplugin.resource.directories=C:\Program Files\Atlassian\Application Data\JIRA\scripts
  5. Restat Jira service

Hi @Pradeep A,

Have you tried to read through the steps provided in the ScriptRunner Documentation?

In order to set the plugin.resource.directories, you need to open the <JIRA_HOME>/bin/setenv.sh or <JIRA_HOME>/bin/setenv.bat file depending on your OS and add the parameters to the JVM_REQUIRED_ARGS section.

Below is an example of the parameter:-

JVM_REQUIRED_ARGS='-Dplugin.resource.directories=/opt/atlassian/application-data/jira/javascripts -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.I nterningDocumentFactory'

You also need to ensure that the javascript folder is created in the path which you are specifying in the setenv file.

Make sure that your Jira instance is down when you modify the file. You will then need to execute the setenv file and restart your Jira instance for the change to take effect.

I hope this helps to solve your question. :)

Thank you and Kind Regards,

Ram

Hi @Ram Kumar Aravindakshan _Adaptavist_ ,

I'm using the jira server on Windows, I modified the setenv.bat like this:

set JVM_REQUIRED_ARGS=-Dplugin.resource.directories="C:\Program Files\Atlassian\Application Data\JIRA\scripts" 

I put my custom css (custom.css)

I restarted the jira service

but in the scriptrunner have the error: "Could not find custom.css in configured resource directories..." How can I fix it?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,129 views 34 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you