Forums

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

How to set system property com.atlassian.jira.clickjacking.protection.exclude=/rest/my-plugin/1.0/da

Subhajit Bhuiya July 8, 2018

I am running my plugin using atlas-debug coomad. I am trying to set the system property

com.atlassian.jira.clickjacking.protection.exclude=/rest/my-plugin/1.0/dashboard,/rest/collectors/1.0/template/form/

 

If JIRA is installed, then we can set it by 

  1. From <jira-install>/bin, open setenv.bat.
  2. Find the section set JVM_SUPPORT_RECOMMENDED_ARGS=

 

But when I do atlas-debug, there is o such file setenv.bat

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 9, 2018

Hi Subhajit,

The flag you referenced (JVM_SUPPORT_RECOMMENDED_ARGS) is just a quick way in the setenv file to pass parameters in to Java during application startup. You can also just pass arguments straight to the JVM to achieve the same results. There are a couple easy ways of doing this:

  1. Use the --jvmargs flag with atlas-debug. Documentation for atlas-debug is available here.
  2. AMPS which runs behind-the-scenes from atlas-debug will read jvmargs from your pom.xml file. Documentation for what AMPS will read is here, and you can see an example of a pom.xml file for Maven (not Jira specific) with that argument set here.

I hope that helps!

Cheers,
Daniel

P.S. While we are happy to help here, you can also ask plugin development questions at our developer-centric community: community.developer.atlassian.com

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events