Skip to main content

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​

FeatureDescription
Manual ticket creationCreate a Jira issue from any failed run in the Investigation Hub drawer or the Executions list
Readable defaultsTitle 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 formattingDescriptions 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 textANSI 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-fillThe Auto Bug modal generates a title and description you can review before submitting
Project, issue type, assignee and custom fieldsPickers load from your Jira project; required custom fields are shown in the modal
Bidirectional linkThe Jira issue key and URL are stored on the run (jiraTickets[])
Test ConnectionChecks 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​

  1. Go to id.atlassian.com/manage-profile/security/api-tokens.
  2. 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​

  1. In the Agnox dashboard, go to Settings → Connectors.
  2. In the Jira card, fill in:
FieldValue
Jira Domainyour-org.atlassian.net (only *.atlassian.net is accepted)
Account EmailEmail address of the token owner
API TokenToken from Step 1. Leave blank on later edits to keep the stored token
  1. Click Save Configuration. The card shows a Connected badge.
  2. 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​

  1. Open a FAILED, ERROR or UNSTABLE run.
  2. Click the Jira button in the drawer toolbar.
  3. 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.
  4. 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).

  1. In the execution drawer, click the ✨ Auto Bug button.
  2. Agnox generates a bug report: severity, steps to reproduce, expected and actual behaviour, suggested code changes and the root cause analysis.
  3. Click Submit to Jira. The modal opens with that content (and the run's metadata) already in place.
  4. 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.

MessageLikely Cause
Jira API error 401: authentication failed — check the API tokenWrong email/token combination
Jira API error 403: permission denied for this accountThe user lacks Create Issues permission in the project
Jira API error 404: not found — check the configured IDsProject key or issue type is wrong
Jira did not respond within 10 secondsJira was slow or unreachable — try again
Jira API error 400: the request was rejectedA required custom field is missing — fill it in the modal