屏蔽问题
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页介绍了如何在 Google 问题跟踪器中使用一个问题屏蔽另一个问题。
如果一个问题会阻止另一个问题,则表示应先解决第一个问题,然后再解决第二个问题。屏蔽功能仅用于跟踪目的。问题跟踪器本身不会强制执行屏蔽操作。即使存在阻止问题解决的待解决问题,您也可以将问题标记为已解决。
屏蔽功能是相互的。如果您将一个问题设置为屏蔽另一个问题,第一个问题会显示在第二个问题的屏蔽对象列表中,而第二个问题会显示在第一个问题的屏蔽列表中。
您必须对包含这两个问题的组件拥有修改问题 权限,才能设置阻塞关系。
已屏蔽的问题
屏蔽问题表示在另一个问题得到解决之前,不应解决该问题。首先需要解决的是屏蔽问题,其次是被屏蔽问题。一个问题可以同时阻止或被多个问题阻止。
屏蔽问题不会对问题施加任何实际限制。也就是说,即使未对导致问题的代码进行任何更改,您仍然可以更新或关闭导致问题的代码。因此,屏蔽功能应被视为跟踪或通知系统。如何回应被屏蔽的问题的决定将交由负责解决此问题的个人和团队。
界面位置
系统会在屏蔽和依赖项标签页中跟踪屏蔽情况。例如,如果您前往问题 A 的页面并将其设置为屏蔽问题 B,则问题 A 的页面会在屏蔽标签页中列出问题 B,而问题 B 的页面会在依赖项标签页的屏蔽程序部分下列出问题 A。
屏蔽和屏蔽程序部分的标题会显示每个部分包含的问题数量。/
前面的数字是未解决问题的数量,/
后面的数字是问题总数。例如,如果阻塞标签页显示 2/5
,则表示有 5 个问题阻塞了当前问题,但其中只有 2 个问题尚未解决。
点击依赖项或屏蔽标签页,即可显示相关问题的表格。每个问题条目都包含多个部分,包括状态、问题标题和问题 ID。
点击相应行即可前往相应问题。
将某个问题设为被另一个问题屏蔽
若要将某个问题设为因其他问题而被阻塞,请执行以下操作:
前往要屏蔽的问题。
在页面顶部附近的标签页中,点击依赖项。
点击标题为屏蔽程序的部分附近的添加屏蔽程序。

您可以通过以下两种方式输入屏蔽问题。

- 方式 2:输入问题 ID。您可以一次添加多个 ID(以英文逗号分隔)。

点击确认。
如果成功,屏蔽问题将添加到屏蔽程序列表中。
设置一个问题来屏蔽另一个问题
如需将某个问题设为阻塞另一个问题,请执行以下操作:
前往将被屏蔽的问题。
在页面顶部附近的标签页中,点击屏蔽。
点击添加

您可以通过以下两种方式输入被屏蔽的问题。

- 方式 2:输入问题 ID。您可以一次添加多个 ID(以英文逗号分隔)。

点击确认。
如果成功,系统会将被屏蔽的问题添加到屏蔽列表。
后续步骤
保留所有权利。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis page explains how to establish blocking relationships between issues in Google Issue Tracker, indicating one issue must be resolved before another.\u003c/p\u003e\n"],["\u003cp\u003eBlocking is for tracking and notification, it doesn't enforce restrictions; blocked issues can still be updated or closed independently.\u003c/p\u003e\n"],["\u003cp\u003eYou can set an issue to be blocked by another, or set an issue to block another, using the 'Dependencies' and 'Blocking' tabs, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe 'Blocking' and 'Dependencies' tabs allow viewing and managing the blocking relationships, with the number of open and total blocking issues indicated.\u003c/p\u003e\n"],["\u003cp\u003eYou need 'Edit Issues' permissions for the components of both issues to establish a blocking relationship.\u003c/p\u003e\n"]]],[],null,["# Block an Issue\n\nThis page shows how to block one [issue](../concepts/issues) with another issue\nin Google Issue Tracker.\n\nWhen one issue blocks another, it means that the first issue should be resolved\nbefore the second one is resolved. Blocking is intended for tracking purposes\nonly. Issue Tracker itself does not enforce blocking. An issue can be marked\n**Fixed** even if it has open issues blocking it.\n\nThe blocking feature is reciprocal. If you set one issue to block a second\nissue, the first appears as one of the **Blockers** list of the second, while\nthe second appears in the **Blocking** list of the first.\n\nYou must have **Edit issues** [permission](../concepts/access-control) for the\ncomponents that contain both issues in order to set the blocking relationship.\n\nBlocked issues\n--------------\n\nWhen you block an issue, you indicate that the issue shouldn't be resolved until\nanother issue is resolved. The issue that needs to be resolved first is the\n*blocking* issue, while the issue that will be resolved second is the *blocked*\nissue. An issue can block or be blocked by multiple issues at the same time.\n\nBlocking does not impose any actual restrictions on issues. That is, the blocked\nissue can still be updated or closed even if no changes are made to the blocking\nissue. For this reason, blocking should be thought of as a tracking or\nnotification system. Decisions regarding how to respond to a blocked issue are\nleft to the individuals and teams responsible for resolving the issue.\n\n### UI Location\n\nBlocking is tracked in the **Blocking** and **Dependencies** tabs. For example,\nif you go to Issue A's page and set it to block Issue B, then the page for Issue\nA lists Issue B in its **Blocking** tab, while the page for Issue B lists Issue\nA in its **Dependencies** tab under the **Blockers** section.\n\nThe title of the **Blocking** and **Blocker** sections show how many issues are\nin each. The number preceding the `/` is the number of open issues and the\nnumber following `/` is the total number of issues. For example, if the\n**Blocking** tab reads `2/5`, then there are 5 issues in total set that block\nthe current issue, but only 2 of those issues have yet to be resolved.\n\nClicking on either the **Dependencies** or **Blocking** tab displays a table of\nrelevant issues. Each issue entry has several parts, including **Status** ,\n**Issue Title** , and **Issue ID**.\n\nClick the row to navigate to that issue.\n\nSet an issue to be blocked by another\n-------------------------------------\n\nTo set an issue as blocked by another issue:\n\n1. Navigate to the issue that is to be blocked.\n\n2. In the tabs near the top of the page, click **Dependencies**.\n\n3. Near the section titled **Blockers** , click **Add blocker**.\n\n4. There are two options to enter the blocking issue.\n\n - Option 1: text search for the issue.\n\n - Option 2: enter the issue id(s). Multiple IDs, separated by commas, can be added at a time.\n\n5. Click **Confirm**.\n\n If successful, the blocking issue will be added to the **Blockers** list.\n\nSet an issue to block another\n-----------------------------\n\nTo set an issue as blocking another issue:\n\n1. Navigate to the issue that will be blocking.\n\n2. In the tabs near the top of the page, click **Blocking**.\n\n3. Click **Add**\n\n4. There are two options to enter the blocked issue.\n\n - Option 1: text search for the issue.\n\n - Option 2: enter the issue id(s). Multiple IDs, separated by commas, can be added at a time.\n\n5. Click **Confirm**.\n\n If successful, the blocked issue will be added to the **Blocking** list.\n\nWhat's next\n-----------\n\n- [Mark an issue as a duplicate of another issue](/issue-tracker/guides/duplicate-issue)"]]