-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

JIRA 7 Essentials
By :

Now that you have a good understanding of the overall architecture of JIRA, the basic system requirements, and the various installation options, we are ready to deploy our own JIRA instances.
In the following exercise, we will be installing and configuring a fresh JIRA instance for a small production team. We will perform our installation on a Windows platform with a MySQL database server. If you are planning to use a different platform or database, refer to the vendor documentation on installing the required software for your platform.
In this exercise, you will do the following:
We will continue to use this JIRA instance in our subsequent chapters and exercises as we build our help desk implementation.
For our deployment, we will use the following:
Since we will be using the installer package with Java bundled, you can skip this section. However, if you are using the ZIP archive or WAR distribution, you need to make sure that you have Java installed on your system.
JIRA 7 requires JRE version 8 (1.8) or a newer run. You can verify the version of Java you have by running the following command in a Command Prompt:
java -version
The preceding command tells us which version of Java is running on your system, as shown in the following screenshot:
If you do not see a similar output, then chances are you do not have Java installed. You will need to perform the following steps to set up your Java environment. We will start by installing JDK on your system:
At the time of writing this, the latest version of Java 8 is JDK 8 Update 91.
JAVA_HOME
for the rest of this book.JAVA_HOME
with the value set to the full path of the location where you installed Java. You can do this as follows:
PATH
environment variable and append the following to the end of its current value:;%JAVA_HOME%\bin
java -version
This will display the version of Java installed, if everything is done correctly. In Windows, you have to start a new Command Prompt after you have added the environment variable to see the change.
The next step is to prepare an enterprise database for your JIRA installation. JIRA requires a fresh database. If, during the installation process, JIRA detects that the target database already contains any data, it will not proceed. If you already have a database system installed, then you may skip this section.
To install MySQL, simply perform the following steps:
At the time of writing, the latest version of MySQL is 5.7.13.
root
. Do not lose this password, as we will be using it in the next section.Now that you have MySQL installed, you need to first create a user for JIRA to connect MySQL with, and then create a fresh database for JIRA to store all its data:
create database jiradb character set utf8;
jiradb
. You can name the database anything you like. As you will see later in this chapter, this name will be referenced when you connect JIRA to MySQL. We have also set the database to use UTF-8 character encoding, as this is a requirement for JIRA. Using the following command, you need to ensure that the database uses the InnoDB storage engine to avoid data corruption:grant all on jiradb.* to 'jirauser'@'localhost'
identified by 'jirauserpassword';
We are doing several things here. First, we create a user called jirauser
and assign the password jirauserpassword
to him. You should change the username and password to something else.
We have also granted all the privileges to the user for the jiradb
database that we just created so that the user can perform database operations, such as create/drop tables and insert/delete data. If you have named your database something other than jiradb
, then make sure that you change the command so that it uses the name of your database.
This allows you to control the fact that only authorized users (specified in the preceding command) are able to access the JIRA database to ensure data security and integrity.
quit;
mysql -u jirauser -p
jirauser
.show databases;
This will list all the databases that are currently accessible by the logged-in user. You should see jiradb
among the list of databases.
jiradb
database by issuing the following commands:use jiradb; show tables;
The first command connects you to the jiradb
database, so all of your subsequent commands will be executed against the correct database.
The second command lists all the tables that exist in the jiradb
database. Right now, the list should be empty, since no tables have been created for JIRA; but don't worry, as soon as we connect to JIRA, all the tables will automatically be created.
With the Java environment and database prepared, you can now move on to install JIRA. Normally, there are only two steps:
The first step is to download the latest stable release of JIRA. You can download Atlassian JIRA from http://www.atlassian.com/software/jira/download.
The Atlassian website will detect the operating system you are using and automatically suggest an installation package for you to download. If you intend to install JIRA on a different operating system from the one you are currently on, make sure that you select the correct operating system package.
As mentioned earlier, with Windows there is a Windows installer package and a self-extracting ZIP package. For the purpose of this exercise, we will use the installer package (Windows 64-bit Installer):
JIRA_INSTALL
directory. Click on the Next button to continue.
JIRA_HOME
directory. Click on the Next button to continue.
8080
. If 8080
is already taken by another application or if you want JIRA to run on a different port such as port 80
, select the Set custom value for HTTP and Control ports option and specify the port numbers you want to use. Click on the Next button to continue.
Since we need to install the MySQL database driver for JIRA, we are launching JIRA in the browser now to verify that the installation was successful.
JIRA does not come bundled with the MySQL database driver, so we have to install it manually. You can download the required driver from http://dev.mysql.com/downloads/connector/j/. Once downloaded, you can install the driver by copying the driver JAR file into the JIRA_INSTALL/lib
directory. After that, you need to restart JIRA. If you have installed JIRA as a Windows service in step 9, refer to the Starting and stopping JIRA section.
Make sure that you select the Platform Independent option and download the JAR or TAR archive.
JIRA comes with an easy-to-use setup wizard that will walk you through the installation and configuration process in six simple steps. You will be able to configure the database connections, default language, and much more. You can access the wizard by opening http://localhost:<port number>
in your browser, where the <port number>
is the number you have assigned to JIRA in step 6 of the installation.
In the first step of the wizard, we need to select how we want JIRA to be set up. Since we are installing JIRA for production use, we will select the I'll set it up myself option.
For the second step, we will need to select the database we want to use. This is where we configure JIRA to use the MySQL database we have created earlier in this chapter. If you select the Built In option, JIRA will use its bundled in-memory database, which is good for evaluation purposes. If you want to use a proper database, such as in our case, you should select the My Own Database option.
The Built In option is great to get JIRA up and running quickly for evaluation purposes.
After you have selected the My Own Database option, the wizard will expand for you to provide the database connection details. If you do not have the necessary database driver installed, JIRA will prompt you for it, as shown in the preceding screenshot.
Once you have filled in the details for your database, it is a good idea to first click on the Test Connection button to verify that JIRA is able to connect to the database. If everything is set up correctly, JIRA will report a success message. You should be able to move onto the next step by clicking on the Next button. This may take a few minutes, as JIRA will now create all the necessary database objects. Once this is done, you will be taken to step 3 of the wizard.
In the third step, you will need to provide some basic details about this JIRA instance. Once you have filled in the required fields, click on Next to move on to step 4 of the wizard.
In the fourth step, we need to provide a license key for JIRA. If you have already obtained a license from Atlassian, you can paste it into the Your License Key text box. If you do not have a license, you can generate an evaluation license by clicking on the generate a JIRA trial license link. The evaluation license will grant you access to JIRA's full set of features for one month. After the evaluation period ends, you will lose the ability to create new issues, but you can still access your data.
In the fifth step, you will be setting up the administrator account for JIRA. It is important that you keep the account details somewhere safe and do not lose the password. Since JIRA only stores the hashed value of the password instead of the actual password itself, you will not be able to retrieve it. Fill in the administrator account details and click on Next to move on to the sixth step.
This account is important and it can help you troubleshoot and fix problems later on. Do not lose it!
In the sixth step, you can set up your e-mail server details. JIRA will use the information configured here to send out notification e-mails. Notification is a very powerful feature in JIRA and one of the primary methods by which, JIRA communicates with users. If you do not have your e-mail server information handy, you can skip this step now by selecting the Later option and clicking on Finish. You can configure your e-mail server settings later, as you will see in Chapter 7, E-mails and Notifications.
Congratulations! You have successfully completed your JIRA setup. JIRA will then ask you to configure your new account, such as the default language and profile picture. Follow the onscreen prompts to set up your account, and once you are done, you should be presented with the JIRA dashboard, as shown in the following screenshot:
Since JIRA is installed as a Windows service, you can start, stop, and restart it via the Windows services console by navigating to Start | Control Panel | Administrative Tools | Services. In the services console, look for Atlassian JIRA, and you will be able to stop and start the application, as shown in the following screenshot:
Change the font size
Change margin width
Change background colour