# 缺陷组件

缺陷组件具备”工作项类型组件“的所有通用特性功能，本章节将主要介绍在缺陷管理场景下的一些特性功能。

## 1. 缺陷与执行结果/测试用例/测试计划关联

测试人员在提缺陷时，可关联TestCase中的执行结果，方便研发人员快速定位问题。

![](/files/-MdG_gYCYcg6R39vUPtJ)

缺陷往往是对研发任务进行修复，在回归缺陷时可以复用此前研发任务的测试计划及用例。所以为便利测试人员管理缺陷，可以在缺陷中关联 Testcase 已有的测试计划及用例，并在缺陷工作项中进行展示。

## 2. 合并缺陷

在缺陷管理过程中，可能存在相同 Bug 重复提交的情况。测试人员或缺陷管理人员可将相同的 Bug 合并，方便 Bug 修复追踪。

点击缺陷详情中的右上角 「更多」按钮，选择「合并缺陷」，搜索选择需要与当前缺陷合并的缺陷，可以选择缺陷合并方向，即可选将 A 合并至 B 或者将 B 合并至 A。点击确定即可合并缺陷。

合并缺陷后将会把当前缺陷的描述、文件、关联内容（关联工作项、Wiki 页面、测试情况）和关注者累加到所选缺陷。

![](/files/-MdGbq5Fj8lacXr6Sn7Q)

{% hint style="info" %}
注意：只可合并相同项目下的缺陷。
{% endhint %}

## 3. 缺陷转需求

缺陷管理过程中，用户可快速将缺陷转换为需求，并可在需求上追溯来源缺陷，方便 Bug修复追踪。

点击缺陷右上角「更多」按钮，选择「转需求」，在转需求的弹窗中，填写必要信息；点击「创建并更新缺陷」即可成功创建需求，同时建议修改当前缺陷的状态。

需求创建成功后，系统会自动将需求与缺陷关联起来，在需求侧，可追溯需求来源缺陷；在缺陷侧，可追踪缺陷所转需求。

![](/files/-MdGc2HZ8owH6kRdlqTK)


---

# Agent Instructions: 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://guides-ones.gitbook.io/guides/usage-guide/ones-project/pei-zhi-xiang-mu-zu-jian/que-xian-zu-jian-1.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.
