> OctoPerf load testing - Jira integration.

Source: https://api.octoperf.com/doc/runtime/edit-scenario/integrations-automation/ci-cd/jira/

# JIRA Integration

On this page we will explain the different ways of integrating Octoperf with JIRA.

## Automatic Test Launch from a JIRA project

This integration will automatically launch an Octoperf load test when one issue is transitioned from one specific status to another.

### Get the test launch URL from Octoperf

Click on the Jira integration menu in your runtime scenario:

![JIRA Integration](https://api.octoperf.com/doc/runtime/edit-scenario/integrations-automation/ci-cd/jira/img/jira-integration-1.png)

Copy the link provided:

![JIRA Integration](https://api.octoperf.com/doc/runtime/edit-scenario/integrations-automation/ci-cd/jira/img/jira-integration-2.png)

### Jira Project Configuration

Go to your Jira project, then select "Project settings"

![JIRA Integration](https://api.octoperf.com/doc/runtime/edit-scenario/integrations-automation/ci-cd/jira/img/jira-integration-3.png)

Then click on "Automation":

![JIRA Integration](https://api.octoperf.com/doc/runtime/edit-scenario/integrations-automation/ci-cd/jira/img/jira-integration-4.png)

Create a new automation rule:

![JIRA Integration](https://api.octoperf.com/doc/runtime/edit-scenario/integrations-automation/ci-cd/jira/img/jira-integration-5.png)

You can then configure the rule:

#### When: 

Select the source status in "FROM" and the target status in "TO"

#### Then: 

- Select "Send web request"
- Copy your test URL and put it in the "Web request URL"
- Configure the "Headers" field with "Authorization" and your [API key](https://api.octoperf.com/doc/account/profile/#apikey)
- "HTTP method": POST
- Choose Issue data (JIRA format)
- Save



![JIRA Integration](https://api.octoperf.com/doc/runtime/edit-scenario/integrations-automation/ci-cd/jira/img/jira-integration-6.png)



!!! info
    A test launched from JIRA goes through the [scenario check](https://api.octoperf.com/doc/runtime/edit-scenario/scenario-check/) first. When the scenario has an **Error**, the web request is refused with a message that names the user profile and the problem, and no credit is consumed. The audit log of the JIRA rule shows this message: open the scenario in OctoPerf to see the problems and fix them.
