Tools: Jira

This topic explains how to integrate TestRail with Atlassian Jira (both Jira installations as well as Jira OnDemand). There are currently three ways to integrate TestRail with Jira, namely:

You don't have to use all listed integration options and you can mix and match the integration with other tools. Configuring the integration usually only takes a few minutes and this guide explains how to configure the integration and how it works.

Defect URLs

The defect URLs are used to let TestRail know how to access your Jira instance. Once the URLs have been configured, a new Add link appears next to the Defects field in the Add Test Result dialog. This link allows you to jump to Jira's Create Issue form to report a new bug. Additionally, entered issue IDs are linked to your Jira instance to make it easier to track the status of your issues.

To configure Jira's URLs in TestRail, select Administration > Site Settings > Integration Tab. You can alternatively enter separate bug tracker URLs for each project under Administration > Projects. Use the following example URLs to configure the addresses:

Jira OnDemand
Defect View Url: https://name.jira.com/browse/%id%
Defect Add Url:  https://name.jira.com/secure/CreateIssue!default.jspa

Jira installation
Defect View Url: http://your-server/jira/browse/%id%
Defect Add Url:  http://your-server/jira/secure/CreateIssue!default.jspa

Defect plugins

Defect plugins can be used to implement a deeper bug tracker integration and TestRail comes with a ready-to-use Jira defect plugin. To configure the defect plugin, select Administration > Site Settings > Integration Tab and select Jira in the Defect Plugin dropdown list. The next step is to configure all the necessary connection settings in the Configuration field. Project specific plugins and configuration settings can optionally be specified under Administration > Projects.

When the defect plugin has been configured, a new Push link is shown next to the Defects field in the Add Test Result dialog. Clicking the link will open a popup dialog that enables you to push a bug report to Jira without leaving TestRail. Once the test result was added, hovering the mouse cursor over an issue ID will open a window with useful information and status details about the issue in Jira.

Please note: The Jira defect plugin was built to work with a standard Jira installation. While the plugin will work with most Jira configurations, you might need to customize the plugin if you've made critical changes to your Jira instance (such as adding additional required fields to your forms).

Reference URLs

The reference URLs are used to link test cases to issues stored in Jira via the References field. Once the URLs have been configured, issue IDs entered in the References field are linked to your Jira instance to make it easier to jump to related issues, feature specifications or requirements.

To configure Jira's URLs for the References field, select Administration > Site Settings > Integration Tab. You can alternatively enter separate reference URLs for each project under Administration > Projects. Use the following example URLs to integrate TestRail with Jira:

Jira OnDemand
Reference View Url: https://name.jira.com/browse/%id%
Reference Add Url:  https://name.jira.com/secure/CreateIssue!default.jspa

Jira installation
Reference View Url: http://your-server/jira/browse/%id%
Reference Add Url:  http://your-server/jira/secure/CreateIssue!default.jspa