> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scandrix.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Jira & Linear Integration

> Configure project management integrations to automatically sync PR review status, verify ticket requirements, and trace issue context.

Integrating ScanDrix with **Jira Cloud** or **Linear** bridges the gap between engineering project management and pull request review workflows.

## Features

* **Automated Ticket Linking**: Extracts ticket keys from branch names (e.g. `feat/JIRA-102-auth`) or PR titles and embeds issue links in review headers.
* **Acceptance Criteria Verification**: Matches PR code diffs against user story descriptions to verify that all functional requirements are satisfied.
* **Workflow State Transitions**: Automatically transitions Jira/Linear tickets from *In Progress* to *In Review* when a PR opens, and to *Done* upon merge.

***

## Jira Cloud setup

**1. Create Atlassian API Token**

1. Log in to [id.atlassian.com](https://id.atlassian.com/manage-profile/security/api-tokens).
2. Click **Create API Token**, label it `scandrix-pr-reviewer`, and copy the token.

**2. Configure ScanDrix Dashboard**

1. In the ScanDrix dashboard, go to **Settings → Integrations → Jira**.
2. Enter your Atlassian domain (e.g. `your-company.atlassian.net`), admin email, and the API token.
3. Click **Verify Connection**.

**3. Select Project Keys**

Specify the active Jira project keys you want ScanDrix to monitor (e.g. `ENG`, `SEC`, `CORE`).

***

## Linear setup

**1. Generate Linear Personal API Key**

1. In Linear, navigate to **Settings → Security & Access → Personal API Keys**.
2. Generate a new key with `read` and `write` scope labeled `ScanDrix Integration`.

**2. Connect Linear in ScanDrix**

1. In the ScanDrix dashboard, go to **Settings → Integrations → Linear**.
2. Paste your Linear API key and select your primary team workspace.

***

## Webhook event configuration

ScanDrix automatically creates webhooks on your project management provider to detect issue updates:

```json theme={null}
{
  "event": "issue_updated",
  "data": {
    "key": "ENG-304",
    "status": "In Progress",
    "acceptance_criteria": "Must support Argon2id hashing with constant-time lookup."
  }
}
```

When a corresponding PR is updated, ScanDrix re-evaluates the diff against any newly added acceptance criteria in real time.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.