Product documentation
Updated

File a Failed Test as a Bug in Jira, Azure DevOps, GitHub or GitLab

File a failed test result, or a whole run-triage cause, as a ticket in your tracker without leaving the report. What each ticket carries, what is hidden, and what to check before you file.

Applies to: All editions, including Citizen Developer · Release 2.0.96.278 or later · Web app / Desktop app · Connecting a tracker needs permission to manage tracker connections (by default, Administrators). Filing needs permission to edit tests (by default, Administrators and Contributors). Filing security findings needs the API security testing add-on (a Trial includes it).

Overview

When you have read a failure and agree that something is wrong, you can file it as a ticket from the place where you read it. Shift-Left API supports Jira (Cloud, or Server and Data Center), Azure DevOps, GitHub Issues and GitLab Issues.

A person presses the button each time. Nothing is filed automatically. A filed ticket does not prove that the API is at fault, so read the failure first. Explore the capability at file a failed test as a bug.

There are three ways to file, and their tickets differ.

What you fileWhat the ticket carries
One failed test resultThe whole report, including the response body, and the test's severity
One run-triage cause (a group of failures)A summary of the cause. No full report and no severity. Response lines only if you tick the box
A security finding or action-list itemWhat was found, why it matters, how to fix it and how to confirm the fix, with OWASP and CWE references. No evidence

Step 1 — Connect an issue tracker (administrator)

  1. Open Settings, then Integrations, then Issue Trackers. The screen is headed File failures and findings as tickets.
  2. Select Add a tracker.
  3. Enter a Name and choose the Tracker: Jira, Azure DevOps, GitHub Issues or GitLab Issues.
  4. Fill in the fields for that tracker:
TrackerWhat it asks for
JiraThe Jira address, the Deployment (Jira Cloud (e-mail + API token) or Jira Server / Data Center (personal access token)), the e-mail address for Jira Cloud, the project key, the issue type and the token
Azure DevOpsThe organisation address, the project name, the work item type and a personal access token
GitHub IssuesThe repository as owner/name and a token that may create issues. Enter an address only for GitHub Enterprise Server
GitLab IssuesThe project as group/name and a token with the api scope. Enter an address only for a self-managed GitLab
  1. Select Save, then Test the connection. Use Change or Remove later if you need to.

The token is write-only. There are no settings for assignee, component or custom fields.

Issue trackers and requirement trackers are separate. A requirement tracker reads tickets into your project, and a connection added only there cannot be used to file bugs. Add it again under Issue Trackers. A connection saved before the two screens were separated appears on both, and a change on one applies to both.

On a shared installation, a tracker on a private network address is refused. If your administrator keeps a list of allowed self-hosted addresses, your tracker must be on it.

Step 2 — File one failed test result

  1. Open a result whose status is FAILED or ERROR. The box File this failure as a bug appears under its header in three places:
    • the report link for the run
    • the single-run view in Reporting
    • the results pane of the edit test screen
  2. In File in, select Choose a tracker. If only one tracker is connected, it is already selected.
  3. Select File as a bug. The button reads Filing… while it works.
  4. The box then shows Filed as KEY in Jira. (with your ticket key and tracker), with a link to the ticket.

A report that you open by a pack execution, and not by a single run, has no box. Open the single run instead.

What the ticket contains

The title is [Test failed] <test name> (METHOD /path), and the labels are test-failure and shift-left-studio. The body holds the whole report:

  • Summary: the test, project, endpoint, protocol, environment, base URL, who ran it, the runner, times, durations, expected and actual status, and the run ID.
  • Every check, up to 100, passed and failed, with the expected value, the actual value and the reason.
  • The request and the response, with their headers and bodies.
  • The error, diagnostics, extracted variables and the last 150 lines of the run log.
  • A link back to the run in Reporting, when the server knows its public address.

Each part has a size limit: 3,000 characters for headers, 5,000 for the request body, 9,000 for the response body, 6,000 for the log and 2,000 for variables. A part that was cut says so.

The text is formatted for the tracker: Atlassian Document Format for Jira Cloud, wiki markup for Jira Server, HTML for Azure DevOps and Markdown for GitHub and GitLab. Nothing is attached as a file, and no screenshot is added.

How severity is carried over

The test's severity goes with a single test result.

TrackerWhat the severity sets
JiraThe priority: Critical is Highest, High is High, Medium is Medium and Low is Low
Azure DevOpsThe Priority (1 to 4). On a Bug, also the Severity (1 - Critical to 4 - Low)
GitHub and GitLabA severity:<level> label

If Jira or Azure DevOps refuses the field, the ticket is sent again without it.

Step 3 — File a run-triage cause

Run triage groups the failures of a run into causes. You can file any cause, whatever its verdict.

  1. Open the cause's details.
  2. Under What to do, choose a tracker in File in.
  3. Optionally, tick Include a few lines of the response (it may hold personal data). At most three lines of 200 characters are added.
  4. Select Raise as a defect (for a likely product bug) or File as a bug (for any other cause).
CauseTitle starts withWhat the ticket says
Likely product bug[Defect]The failing tests are correct and the API should change. It is labelled defect and shift-left-studio
Any other cause[Test failure]Triage's reading and advice. It does not say that the API is wrong. It is labelled test-failure and shift-left-studio

The ticket also gives the number of failed runs, up to 10 endpoints, triage's explanation, how the verdict was decided and how confident it is. It does not carry the full report or a severity.

What is hidden, and what to check

Headers, JSON body fields and extracted variables whose names look like credentials (for example authorization, cookie, api-key, token, secret, password, credential, session or x-auth) are shown only by their length. Matching XML elements are hidden too, and secrets are masked in the run log when it is written.

This is masking by name. It does not find every secret. The ticket builder does not mask:

  • the full request URL, including a key passed in the query string
  • the text of checks (expected, actual and reason) and the error message
  • a body that is neither JSON nor XML, such as a form-encoded body
  • a secret stored in a field with an ordinary name

A failed result's ticket always includes the response body, which may hold personal data. There is no tick box for it. Before you file, read the report and think about who can see the tracker project.

Security findings

With the API security testing add-on, or on a Trial, you can also file findings and action-list items into the same issue trackers. You need permission to manage security findings. A closed security ticket is treated as a claim that the problem is fixed: the next scan checks it and comments on the ticket. Closing a ticket never closes a finding. See API security testing.

Limits

  • Each test result is filed once, and each triage cause is filed once. A later run of the same test is a new result and can be filed again. Duplicates are not detected across runs.
  • You file one result or one cause at a time. There is no bulk filing, no automatic filing when a test fails, and no filing from a pipeline, the MCP server or the project assistant.
  • Tickets for test results and triage causes are one-way. Their status is not read back into Shift-Left API.
  • Workflow results and load test results have no File this failure as a bug box.

Troubleshooting

What you seeWhat to do
To file this as a ticket, connect a ticket tracker…Ask an administrator to add one under Settings, Integrations, Issue Trackers.
There is no box on a resultThe result must be FAILED or ERROR and opened as a single run. Check that you are on Release 2.0.96.278 or later.
Already filed as KEYThis result or cause already has a ticket.
The ticket could not be createdRead the reason after the message. Check the token, the project and the issue type with Test the connection.
The ticket was created as KEY but could not be saved hereThe ticket exists in your tracker. Do not file it again.

Next steps

Still stuck?

Tell us what you’re trying to accomplish and we’ll point you to the right setup—installation, auth, or CI/CD wiring.