Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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.

1 answer

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

124 views 1 12
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