> For the complete documentation index, see [llms.txt](https://docs.testfiesta.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.testfiesta.com/projects-tab/test-runs-tab/linking-existing-defects.md).

# Linking Existing Defects

<details>

<summary>Step 1: Change Test Case status</summary>

Inside a Test Run, adjust the Test Case status to "Failed"

</details>

<figure><img src="/files/28Ul3OZk1wq6BUVavv0l" alt=""><figcaption><p>Select "failed" from the drop-down menu in the status colum.</p></figcaption></figure>

<details>

<summary>Step 2: Confirm creation of a new Defect</summary>

A notification will appear asking if you would like to confirm the creation of a new Defect.\
\
Hit "Create new Defect" to continue or "Skip" to set the failed status to the Test Case without adding a new Defect.

</details>

<figure><img src="/files/6Bu9cBMd5qsqfRvwfEOr" alt=""><figcaption><p>A confirmation will appear asking you to confirm the creation of a new Defect.</p></figcaption></figure>

<details>

<summary>Step 3: Linking the defect to a Test Case</summary>

A sidebar will appear on the right with fields to include Defect information. You can also place a link in the field when referring to an already existing Defect.

</details>

<figure><img src="/files/cbIlHj1Hwztx7WDz4Uvz" alt=""><figcaption><p>Input the Defect information and click "Create a new Defect" at the bottom.</p></figcaption></figure>

Now that you can create and link Defects to failed Test Cases, we will show you how to rerun a Test Run. Click "Next" to see how.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.testfiesta.com/projects-tab/test-runs-tab/linking-existing-defects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
