Jira Integration
Connect Agnox to Jira Cloud to create tickets from failed runs, whether they were hosted runs, Playwright reporter runs or JUnit/Allure uploads. Each ticket gets a readable title, the run's metadata, a cleaned-up error and a link back to the Investigation Hub.
:::info Secrets are encrypted Your Jira API token is stored encrypted with AES-256-GCM and is never returned in API responses or logs. :::
Capabilities
| Feature | Description |
|---|---|
| Manual ticket creation | Create a Jira issue from any failed run in the Investigation Hub drawer or the Executions list |
| Readable defaults | Title Failed run: <run name> (falls back to the run group, then the run ID); description with run, group, run ID, status, environment (including qa), source, base URL, start time, the error and the end of the log |
| Rich formatting | Descriptions are written in Markdown (headings, - lists, numbered lists, ``` code blocks, **bold**, links) and sent to Jira as structured Atlassian Document Format (REST API v3) |
| Clean text | ANSI colour codes are stripped and secrets (tokens, passwords, Authorization headers, JWTs…) are redacted in the modal and again on the server when the ticket is sent |
| AI pre-fill | The Auto Bug modal generates a title and description you can review before submitting |
| Project, issue type, assignee and custom fields | Pickers load from your Jira project; required custom fields are shown in the modal |
| Bidirectional link | The Jira issue key and URL are stored on the run (jiraTickets[]) |
| Test Connection | Checks the stored credentials against GET /rest/api/3/myself |
Standard fields (summary, description, project, issuetype, assignee, priority, labels, …) cannot be overridden through custom fields. Agnox does not map priorities.
Prerequisites
- A Jira Cloud site (
*.atlassian.net). Jira Server/Data Center is not supported. - Create Issues permission in the target project.
- A Jira API token linked to a user or service account.
Step 1 — Generate a Jira API Token
- Go to id.atlassian.com/manage-profile/security/api-tokens.
- Click Create API token, give it a label (e.g.
Agnox), and copy the token.
:::tip Service accounts For production use, generate the token under a dedicated Jira service-account email. This prevents tickets from losing context if a team member leaves. :::
Step 2 — Configure in Agnox
- In the Agnox dashboard, go to Settings → Connectors.
- In the Jira card, fill in:
| Field | Value |
|---|---|
| Jira Domain | your-org.atlassian.net (only *.atlassian.net is accepted) |
| Account Email | Email address of the token owner |
| API Token | Token from Step 1. Leave blank on later edits to keep the stored token |
- Click Save Configuration. The card shows a Connected badge.
- Click Test Connection to verify the credentials.
The project and issue type are chosen in the ticket modal, not in settings.
Creating Tickets from Executions
From the Investigation Hub
- Open a
FAILED,ERRORorUNSTABLErun. - Click the Jira button in the drawer toolbar.
- Pick the project, issue type and (optionally) an assignee. The modal is pre-filled with:
- Summary:
Failed run: <run name> - Description: the run's metadata, error and log snippet in Markdown. The Docker image is listed only for hosted runs.
- Summary:
- Edit and click Create Ticket.
If the run already has linked Jira tickets, the modal opens on that list first; click Create Another Ticket to file a new one. Jira, Linear and Monday.com share the same issue-tracker modal.
From the AI Auto Bug Modal
The ✨ Auto Bug button appears only when AI is enabled for your organization (your own AI API key in Settings → AI Models).
- In the execution drawer, click the ✨ Auto Bug button.
- Agnox generates a bug report: severity, steps to reproduce, expected and actual behaviour, suggested code changes and the root cause analysis.
- Click Submit to Jira. The modal opens with that content (and the run's metadata) already in place.
- Confirm and submit. The Jira issue key (e.g.
QA-123) is saved to the run.
Troubleshooting
Requests to Jira time out after 10 seconds. Jira's own error pages are logged on the server and not shown in the dashboard; the modal shows a short message instead.
| Message | Likely Cause |
|---|---|
Jira API error 401: authentication failed — check the API token | Wrong email/token combination |
Jira API error 403: permission denied for this account | The user lacks Create Issues permission in the project |
Jira API error 404: not found — check the configured IDs | Project key or issue type is wrong |
Jira did not respond within 10 seconds | Jira was slow or unreachable — try again |
Jira API error 400: the request was rejected | A required custom field is missing — fill it in the modal |