1. Create a directory of your choosing on the Atlassian server.
    Note:

    You should create a subdirectory in your Atlassian instance, such as <Atlassian Installation Directory>\pingfederate-settings.

  2. Go to your Jira root directory and edit .\bin\setenv.bat.
  3. At the start of the .\bin\setenv.batfile, insert the following:
    • If Jira or Confluence is running as a standalone service (started using startup.bat):

      set PINGFEDERATE_ATLASSIAN_DATA_PATH=<Atlassian Installation Directory>\pingfederate-settings
    • If Jira or Confluence is started using Windows service, go to Jira’s bin directory with a command prompt running as Administrator, where Tomcat9.exebinary is located and enter the following.

      tomcat9 //US//<service id> --Environment=PINGFEDERATE_ATLASSIAN_DATA_PATH=<Atlassian Installation Directory>\pingfederate-settings
      Note:

      Depending on your version of Atlassian, you might need to change tomcat9 to tomcat8 in the command. To find out which version of Tomcat you have, check the documentation for your Atlassian product:

      Tip:

      To determine your service ID, open services.msc and select the Jira or Confluence service. The service ID appears in the details area. A service ID is formatted as JIRA123456123456.


      Screen capture of the Services window showing Atlassian Confluence selected.
  4. Restart the Jira server.