Setting your Jira application home directory

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

The Jira application home directory contains key data that help define how Jira works. You must have a Jira home directory specified for your Jira instance before you can start it. This document describes how to specify the location of the Jira home directory for your Jira instance.

One Jira home per Jira instance

You can only have one Jira home directory per Jira installation. If you have multiple Jira installations, you will need to set up a Jira home directory for each installation. A lock is placed at the root level of a Jira home directory when it is created to ensure that it can only used by one Jira installation.

On this page:

You only need to specify the location of the root directory for your Jira home. The sub-directories will be created automatically when Jira is started or when you use a function in Jira that requires a particular sub-directory.

How do I set my Jira home?

There are a few methods available for specifying the location of your Jira application home directory in Jira. However, please be aware of the notes below before your specify this location.

Recommended Methods

The recommended methods for specifying the location of your Jira home directory in Jira are to:

  • Use the Jira configuration tool to change the location of your Jira home directory.
  • Edit the jira-application.properties file and set the value of the 'jira.home' property to the desired location for your Jira home directory (this location should be something different than the application directory, or you may run into problems later). If you are specifying this location's path on Windows, use double back-slashes ("\") between subdirectories. For example, X:\\path\\to\\JIRA\‌\Home.
    (info)If you define an UNC path in Microsoft Windows, be sure to double escape the leading backslash: \\\\machinename\\path\\to\\JIRA\\home
    (info) See the Jira installation directory page to find where this file is located.
  • Set an environment variable named JIRA_HOME in your operating system whose value is the location of your Jira home directory. To do this:
    • On Windows, do one of the following:
      • Configure this environment variable through the Windows user interface (typically through 'My Computer' or 'Computer')
      • At the command prompt, enter the following command (with your own Jira Home path) before running Jira from the command prompt:
        • set JIRA_HOME=X:\path\to\JIRA\Home
          (warning) Please set your JIRA_HOME  environment variable value using this format, where:
          • X is the drive letter where your Jira Home Directory is located and
          • no spacing has been added around the equal sign ('=')
      • Specify the command above in a batch file used to start Jira.
    • On Linux/Solaris, do one of the following:
      • Enter the following command at a shell/console prompt (with your own Jira Home path) before running Jira:
        • export JIRA_HOME=/path/to/jira/home
      • Specify the command above in a script used to start Jira.

(warning) Please note: If you have specified different values for a 'jira.home' property in the jira-application.properties file and a JIRA_HOME environment variable, the value of the JIRA_HOME environment variable takes precedence.

Alternative method

Alternatively, you can specify the location of your Jira home directory as property within your application server:

  • Configure a new web context property called 'jira.home' for your application server. To do this, you need to define this web context property inside a <parameter/> element (as a child of the <context/> element) in your server.xml file.
    (info) The server.xml file is located within the conf subdirectory of your Jira application installation directory.

    <Context ...>
    ...
      <Parameter name="jira.home" value="c:/jira/home"/>
    ...
    </Context>
    

(warning) Please note: A 'jira.home' web context property defined in your application server overrides the value of the 'jira.home' property defined in your jira-application.properties file. However, a JIRA_HOME environment variable defining your Jira home directory will override either of these 'jira.home' values.

What location should I specify for my Jira home?

You can specify any location on a disk for your Jira home directory. Please be sure to specify an absolute path.

Please note that you cannot use the same Jira home directory for multiple instances of Jira. We recommend locating your Jira Home Directory completely independently of the Jira installation directory (i.e. not nesting one within the other) as this will minimize information being lost during major operations (e.g. backing up and restoring instances).

How do I change my Jira home?

  1. Set your Jira home to the new location, using your preferred method as described in "How do I set my Jira home?" (above).
  2. Restart Jira.

What is stored in the Jira home directory?

The following page describes the data stored in the Jira home directory: Jira application home directory.

Notes

Last modified on Apr 19, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.