English

How to link defects to test cases in Jira

On this page

To link a defect to a test case in Jira, create the bug from the failed test result so that the bug carries the test, the step, the requirement and the run that found it. Doing this by hand with issue links works for a few tests; an app does it in one action and keeps the chain intact.

A bug without a test link is an anecdote. With the link, you can answer three questions quickly: which requirement does this break, which release does it threaten, and what do we run to confirm the fix. Release decisions then rest on linked facts rather than on memory.

Example What a bug from a failed step points back to

  • SHOP-517 Bug: total unchanged after codeJira issue
  • Test: apply a discount codethe test
  • Step 2: enter the codethe failed step
  • SHOP-12 Story: discount at checkoutrequirement
  • Regression 2.4.0, attempt 1the run
With these links a release decision rests on facts: which requirement, which release, what to re-run.

Without an app, the usual approach is manual:

  1. Model the test case as an issue, or note the test in a document.
  2. Create the bug as a separate issue.
  3. Add an issue link between them, for example “is blocked by”.
  4. Copy the steps and the actual result into the bug description.

It works, and it costs a few minutes per defect. The link also stops at the issue: it does not record the step, the attempt or the cycle.

In ProbeTest for Jira the runner makes the link while you work.

  1. Open a cycle from Cycles and run the test.
  2. Press F on the failed step, and press E to type the actual result.
  3. Press D to create a bug from the focused step.
  4. Review the pre-filled form: summary, steps, expected and actual result, the requirement link and your pasted screenshots.
  5. Create it. The bug is created in Jira as you.

Press Shift D to link an existing issue instead. The bug is a normal Jira issue and follows your workflows. The run records which bug it found.

What does the bug show in Jira?

A bug raised from a run shows a Found by test runs panel with the test, the failed step, the cycle and the attempt. When the bug is resolved, the panel offers Re-test. You add the panel to an issue from the app actions menu, as described in Tests panel in issues.

How do you retest after the fix?

Press R on the run, or choose Re-test from the bug’s panel. ProbeTest starts a new attempt and keeps the earlier one in history, so a defect that needed three attempts shows three. The cycle’s Defects view lists open bugs next to the runs that found them.

How do you see defects against a release?

Open Coverage → Readiness for a version. It lists open defects and the stories nobody tested, and the verdict takes defect priority into account: an open Highest-priority defect gives No-go. See traceability and coverage in Jira for the full rules.

Doing this inside Jira with an app

ProbeTest for Jira stores tests, cycles and runs in its own app storage, and creates only the bug as a Jira issue. The bug is created as the person using the app, so Jira permissions apply. It is for Jira Cloud only and is coming soon to the Atlassian Marketplace. The first release has no test plans or sets, no parameters, no approvals and no AI features.

Whichever approach you choose, the goal is the same: anyone who opens a bug can see which test, which step and which requirement it belongs to. Read the steps in Plan and run tests, including the runner shortcuts, and the comparison of approaches in Jira test management: how to choose an app.

Sources

To see how it fits together, visit the ProbeTest for Jira page.

Frequently asked questions

How do you link a bug to a test case in Jira?

Create the bug from the failed test result so the link is made for you, or add an issue link by hand. With an app, creating the bug from the failed step also records which test, step and run found it.

What should a good defect link to?

The test case that failed, the step and the actual result, the requirement the test covers and the cycle and attempt that found it. That chain lets you answer which release a bug blocks.

How do I retest a bug after it is fixed?

Start a new attempt on the same test and keep the earlier attempt in history. In ProbeTest you press R in the runner, or use Re-test on the bug's panel in Jira.

Does linking a defect change my Jira backlog?

The bug is a normal Jira issue and follows your own workflow. The test, the cycle and the run are not Jira issues in ProbeTest, so only the bug appears in the backlog.