> For the complete documentation index, see [llms.txt](https://docs.aquilax.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aquilax.ai/user-manual/devtools/vulnerability-tickets.md). Agents can also search and read this documentation through its [MCP server](https://docs.aquilax.ai/~gitbook/mcp).

# Vulnerability Tickets

How to raise vulnerabilities into internal VM platform

## Raise Security Tickets in JIRA, GitHub and GitLab

You can turn any finding into an issue in **Jira**, **GitHub** or **GitLab**, so it is tracked with the rest of your team's work. AquilaX never creates issues on its own. An issue is created only for the findings you choose, when you click **Raise Ticket**. A finding gets at most one issue in each tracker: raising it again opens the existing issue.

{% hint style="info" %}
Jira works for every finding, whatever your repositories are hosted on, including web app (DAST) scans. GitHub and GitLab issues are created in the finding's own repository.
{% endhint %}

### Jira

#### 1. Connect Jira

An organization **Owner** connects Jira once for the whole organization. Go to your **Organization** page, find **Issue tracking** and click **Connect** next to **Jira**.

1. **Jira site address**: for example `https://your-company.atlassian.net`. You can also paste any link from your Jira site; AquilaX keeps the site address.
2. **Jira Cloud**: enter the **account email** and an **API token** of the account that should create the issues. Create the token in your Atlassian account under [Security → API tokens](https://id.atlassian.com/manage-profile/security/api-tokens).
3. **Jira Server or Data Center**: leave the email empty and enter a **personal access token**. If your server uses a self-signed or internal certificate, tick **My Jira server uses a self-signed certificate**.
4. **Default project key** (optional), for example `SEC`: it is pre-selected when you raise a ticket.

AquilaX checks the connection before saving. The account needs the **Create issues** permission in the projects you want to use. The token is never shown again; to change the site or email, enter the token again.

#### 2. Raise Jira tickets

1. Open **Vulnerabilities** and use the filters (repository, severity, scanner, status and more) to find the findings you want to track.
2. For one finding, open the **⋯** menu in its row and click **Raise Ticket**. For several, tick their checkboxes and click **Raise tickets**.
3. Choose the **Jira project** and the **issue type**. AquilaX remembers your choice for next time.
4. AquilaX creates one issue per finding and shows a link to each. Findings that already have a Jira issue keep it.

Each issue contains the vulnerability, severity, scanner, repository, file and line, CWE and OWASP category, the description and the recommendation, and a link back to the finding in AquilaX. Once a finding has an issue, its **⋯** menu shows **Open** with the issue key.

You can also set the Jira project per group: add `"jira_project_key": "SEC"` to the group's **Security Policy**. It is used when no project is chosen, for example through the API.

### GitHub

GitHub issues use the **AquilaX GitHub app** you connected for scanning (**Organization → Integrations → GitHub**). The app needs:

* access to the repository, and
* the **Issues (read and write)** permission. If your GitHub organization installed the app before this permission was requested, an owner of the GitHub organization approves it under **GitHub → Settings → GitHub Apps → AquilaX**.

On **Vulnerabilities**, open a finding's **⋯** menu and click **Raise Ticket** (or select several findings and click **Raise tickets**, and choose **GitHub**). The issue is opened in the finding's GitHub repository. This works for repositories on github.com; it isn't available for web app (DAST) scans or uploaded ZIP code.

### GitLab

#### 1. Connect GitLab with a token that can create issues

Go to your **Organization** page, open **Integrations** and choose **GitLab**.

1. **Git Instance**: your GitLab address, for example `https://gitlab.com` or `https://git.example.com`.
2. **GitLab Access Token**: a personal, group or project access token with the **`api`** scope. A `read_api` token can scan your code but can't create issues. If your token can't create issues, the setup shows a warning, and you can replace the token later.
3. If your self-managed GitLab uses a self-signed or internal certificate, tick **My GitLab server uses a self-signed certificate**.
4. Select the GitLab **groups** that contain the repositories you scan.

The token's user needs at least the **Reporter** role on those projects, and issues must be turned on for them.

#### 2. Raise GitLab tickets

On **Vulnerabilities**, open a finding's **⋯** menu and click **Raise Ticket** (or select several findings and click **Raise tickets**). When Jira is also connected, choose **GitLab** in the dialog. The issue is opened in the finding's GitLab project. This works for repositories covered by your GitLab integration; it isn't available for web app (DAST) scans or uploaded ZIP code.

### Customise the ticket text (optional)

By default the issue is titled `AquilaX - <vulnerability>`. To change the title and text for every tracker, open **Groups**, edit the group and set both fields in its **Security Policy**. If either one is empty, the defaults are used.

```json
{
  "ticket_title": "AquilaX - {{vuln}}",
  "ticket_body": "Found {{vuln}} ({{severity}}) in {{file}}\n\n{{message}}\n\nCWE: {{cwe}}"
}
```

| Variable       | Replaced with              |
| -------------- | -------------------------- |
| `{{vuln}}`     | Vulnerability name         |
| `{{file}}`     | File path                  |
| `{{severity}}` | Severity                   |
| `{{scanner}}`  | Scanner that found it      |
| `{{message}}`  | Description of the finding |
| `{{cwe}}`      | CWE                        |
| `{{owasp}}`    | OWASP category             |

### Troubleshooting

| Message                                                       | What to do                                                                                                                                                |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Jira isn't connected                                          | An Owner connects Jira under **Organization → Issue tracking**.                                                                                           |
| Jira rejected the credentials                                 | Jira Cloud: use the account email and an API token (not the password). Jira Server or Data Center: leave the email empty and use a personal access token. |
| The connected account needs the 'Create issues' permission    | Give the Jira account that permission in the project, or choose another project.                                                                          |
| Jira couldn't find project …                                  | Check the project key and that the connected account can see the project.                                                                                 |
| Jira didn't accept the issue: …                               | The project requires a field AquilaX doesn't fill in. Choose another issue type or project, or make the field optional.                                   |
| No GitHub integration covers this repository                  | Connect GitHub and give the AquilaX app access to the repository.                                                                                         |
| The AquilaX GitHub app can't create issues in this repository | An owner of the GitHub organization approves the app's Issues (read and write) permission.                                                                |
| Issues are turned off for this repository in GitHub           | Turn on Issues in the repository's settings.                                                                                                              |
| No GitLab integration covers this repository                  | Add the repository's GitLab group to the GitLab integration.                                                                                              |
| The GitLab access token can't create issues                   | Create a token with the `api` scope and update it in the GitLab integration.                                                                              |
| GitLab rejected the access token                              | The token has expired or was revoked. Update it in the GitLab integration.                                                                                |
| GitLab refused to create the issue                            | Give the token's user at least the Reporter role and turn on issues for the project.                                                                      |
| …certificate isn't trusted                                    | Tick the self-signed certificate option in the Jira or GitLab integration.                                                                                |
| Couldn't reach Jira / GitLab                                  | Check the address and that the AquilaX server can connect to it.                                                                                          |

{% content-ref url="/pages/LPtn5rXm6CgwR0WtT5C4" %}
[Broken mention](broken://pages/LPtn5rXm6CgwR0WtT5C4)
{% endcontent-ref %}
