Set up Tickets: where, when and what a failing test files
Decides where a failing test files a ticket, when it does, and what the ticket says and carries. It is saved in nexus-tickets.config.json in the workspace, holds no secret, and serves every tracker at once. This guide takes you from nothing to a verified connection, and lists the errors you can meet with their cause and fix.
Last updated:
Keep your credentials private. Never paste a token, key, password or webhook URL into a chat. Type it only in Studio → Settings → Integrations, where it is saved in your workspace's .env file and shown as dots. The same goes for an AI assistant: it can walk you through this guide, but it never needs your token.
Before you start
- At least one tracker connected in Settings → Integrations: Jira, Azure Boards, GitHub Issues, Linear, GitLab Issues, PagerDuty or the ticket webhook (each has its own guide).
- One failed test in the workspace, so the preview and Create test ticket have a real failure to build from.
How Tickets works
- Open Tickets in the left bar, below Executive Report. It has four parts: Where, When, What and Attachments. Nothing applies until you press save tickets.
- Without a saved file, the defaults apply: Jira, Azure Boards and GitHub Issues as destinations (each only when its switch is on), a ticket on BREACHED and TIMEOUT, every failure, close on a clean pass, and a screenshot attached.
- One test keeps one open ticket per destination: a repeat failure comments on it instead of opening another, and a clean pass on every browser of the run comments and closes it.
- Sandbox runs never file anything.
Set it up on the Tickets page
- Where: tick the destinations that should get tickets. + Add another Jira site adds a second Jira; + Add a destination adds Linear, GitLab Issues, PagerDuty or the webhook. Each enabled destination gets its own ticket.
- When: pick the States that open a ticket (BREACHED, TIMEOUT), Failures in a row before opening, Maximum tickets per run (0 = no limit), Where the test runs (Everywhere, Only in CI, Only locally), When the test passes again (Comment and close, Comment only, Do nothing) and Reopen the closed ticket when the failure comes back. Include and exclude by folder, tag (an @word such as @smoke written in the test file) or test ID.
- What: the Title (it must contain {testId}: the title is the 24-hour duplicate key), How much of the error, Labels, priority, Assignee, Component (Jira), a Team note and Custom fields (one FIELD=value per line). Turn on Choose and order the sections myself to pick the description sections.
- Attachments: screenshot, trace, video, HAR, console, network and report, with a size cap per file (10 MB by default). Jira and Azure Boards upload them; GitHub Issues, Linear and GitLab Issues name the evidence folder instead; the webhook carries no file paths.
- Press save tickets. The preview shows the ticket built from your newest real failure.
Check that it works
- The panel says "Saved to nexus-tickets.config.json".
- For Jira, Azure Boards or GitHub Issues, press Create test ticket on that destination: it files one ticket labelled nexus-test from the newest failure. Delete it afterwards.
- For Linear, GitLab Issues and PagerDuty, run a failing test; the run log names what was filed. For the webhook, use Send a test event in Settings → Integrations.
Common errors
| What you see | Cause | Fix |
|---|---|---|
| "nexus-tickets.config.json invalid, using today's defaults: …" | The file was edited by hand and has an unknown key, a wrong value or a secret in it; the reason names the field. | Fix that field, or open the Tickets page and press save tickets to rewrite the file. |
| save tickets stays greyed out after editing the title | The title has no {testId}. | Keep {testId} in the title: it is how a repeat failure finds its open ticket. |
| No ticket for a failing test | Its state is not ticked under States, it has not failed enough times in a row yet, Maximum tickets per run was reached, the run was in the wrong place (Only in CI / Only locally), an include/exclude rule skipped it, or the destination is unticked. | Check When, then Where. The test's ID, folder and tags decide the include and exclude rules. |
| A passing test does not close its ticket | "When the test passes again" is Comment only or Do nothing, or the test failed on another browser in the same run. Jira needs a transition named like JIRA_DONE_TRANSITION, Azure Boards a state named like AZURE_BOARDS_DONE_STATE. | Set it to Comment and close, and check that transition or state exists in your tracker. |
| Create test ticket is greyed out | Only Jira, Azure Boards and GitHub Issues have a test ticket. | For the others, use a failing run (Linear, GitLab Issues, PagerDuty) or Send a test event (webhook). |
Settings keys
| Key | What it does | Valid value | How to check it |
|---|---|---|---|
NEXUS_ISSUE_ATTACH_TRACE | Attach full recording to tickets | true or false | Same as ticking trace under Attachments: the ticket also carries trace.zip and raw-data.json. |
More: all integrations, the Settings guide, troubleshooting. Other guides: Jira Cloud, Azure Boards, Slack, Microsoft Teams, Telegram, GitHub Issues, Linear, GitLab Issues, PagerDuty, TestRail, Ticket webhook.
Still stuck? Write to support@nexusstudioqa.com with the exact error line the Studio shows. Do not include a token.