定義區域路徑並指派給小組Define area paths and assign to a team

Azure Boards |Azure DevOps Server 2020 |Azure DevOps Server 2019 |TFS 2018-TFS 2013Azure Boards | Azure DevOps Server 2020 | Azure DevOps Server 2019 | TFS 2018 - TFS 2013

根據產品、功能或商務領域,新增區域路徑以支援小組和群組工作專案。Add area paths to support teams and group work items based on product, feature, or business areas. 當您在專案層級定義區域路徑之後,您可以將它們指派給小組設定下的小組。Once you define area paths at the project level, you assign them to a team under the team configuration. 您也可以建立區域路徑階層,以支援子領域,最多14個層級。You can also create a hierarchy of area paths to support sub-areas, up to 14 levels deep.

注意

區域路徑和反復專案路徑也稱為 分類節點Area paths and iteration paths are also referred to as Classification Nodes. 您可以透過 (REST API) 的分類節點 ,或 Azure DevOps cli 命令和 az 電路板區域 (Azure DevOps CLI) ,以程式設計方式管理它們。You can manage them programmatically via the Classification Nodes (REST API), or the Azure DevOps CLI commands and az boards area (Azure DevOps CLI).

每個小組都可以存取許多敏捷式工具,如「 關於小組和敏捷式工具」中所述。Each team has access to a number of Agile tools as described in About teams and Agile tools. 每個工具都會參考小組的預設區域路徑 (s) 。Each tool references the team's default area path(s). 大部分的團隊都會選擇一個區域路徑和數個反復專案路徑,以支援其工作追蹤活動。Most teams choose one area path and several iteration paths to support their work tracking activities. 不過,若要支援其他案例,小組可能會選擇要出現在其待處理專案和麵板上的數個區域路徑。However, to support other scenarios, it's possible for teams to choose several area paths to appear on their backlogs and boards.

新專案包含對應至專案名稱的單一根區域。New projects contain a single, root area that corresponds to the project name. 使用相同的專案名稱建立小組,並將根區域路徑指派給該小組。A team is created with the same project name and the root area path is assigned to that team.

若要瞭解系統如何使用區域路徑,請參閱 關於區域和反復專案路徑To understand how the system uses area paths, see About area and iteration paths.

重要

從 Azure DevOps 內容版本選取器中選取版本。

若要查看您的平臺可用的內容,請確定您是從位於目錄上方的版本選取器中選取正確的文章版本。To view the content available for your platform, make sure that you select the correct version of this article from the version selector which is located above the table of contents. 功能支援會因您是從 Azure DevOps Services 或 Azure DevOps Server 的內部部署版本(從 Team Foundation Server (TFS) 重新命名而定)而有所不同。Feature support differs depending on whether you are working from Azure DevOps Services or an on-premises version of Azure DevOps Server, renamed from Team Foundation Server (TFS).
若要瞭解您使用的內部部署版本,請參閱 我所使用的平臺/版本為何?To learn which on-premises version you are using, see What platform/version am I using?

必要條件Prerequisites

  • 如果您還沒有專案,請 立即建立一個專案。If you don't have a project yet, create one now.

  • 確定您是 [ Project Administrators ] 群組的成員,才能在根節點下新增區域路徑,或編輯或刪除任何子節點。Ensure you're a member of the Project Administrators group to add an area path under the root node or edit or delete any child node. 若要取得這些許可權,請參閱 在專案或集合層級設定許可權To acquire these permissions, see Set permissions at the project- or collection-level.

  • 將下列一或多個許可權設定為 [ 允許]、[新增]、[編輯] 和 [管理] 節點下的區域路徑:Have one or more of the following permissions set to Allow, to add, edit, and manage area paths under a node:

    • 建立子節點Create child nodes
    • 刪除此節點Delete this node
    • 編輯此節點Edit this node
    • 此節點中的 View 許可權View permissions in this node

    依預設,建立專案的使用者已設定這些許可權。By default, the user who created the project has these permissions already set. 如需詳細資訊,請參閱 設定工作追蹤的許可權和存取權For more information, see Set permissions and access for work tracking.

  • 確定您 已加入成為小組系統管理員Project Administrators 群組的成員,以設定小組區域路徑。Ensure you're added as a team administrator or are a member of the Project Administrators group to set team area paths.

如需區域路徑的命名限制,請參閱 關於區域和反復專案的命名限制。For naming restrictions on area paths, see About areas and iterations, Naming restrictions.

開始使用Get started

如果您不熟悉如何管理專案和團隊,設定專案和團隊的最直接順序如下所示:If you're new to managing projects and teams, the most straight forward sequence for configuring your project and teams is as follows:

  1. 決定您想要支援的區域路徑數目和名稱,以將工作分類。Determine the number and names of area paths that you want to support to categorize your work. 為您定義的每個小組,至少加入一個區域路徑。At a minimum, add one area path for each team you define. 如需詳細資訊,請參閱 區域和反覆運算For more information, review About areas and iterations.
  2. 決定您想要支援的小組數目和名稱。Determine the number and names of teams you want to support. 如需詳細資訊,請參閱 小組和 Agile 工具For more information, review About teams and Agile tools.
  3. 開啟專案 設定>專案設定 ,並定義區域路徑以支援專案層級的步驟1和2。Open Project settings>Project configuration and define the area paths to support steps 1 and 2 at the project level. 遵循本文稍後提供的步驟:開啟 [ [專案設定]、專案設定 ] 和 [ 新增區域路徑]。Follow the steps provided later in this article: Open Project Settings, Project configuration and Add area paths.
  4. 定義您需要支援步驟2的小組。Define the teams you need to support step 2. 如需詳細資訊,請參閱 新增小組,從一個預設小組移至多個小組For more information, see Add a team, move from one default team to several teams.
  5. 開啟小組設定,並將預設和其他區域路徑 (s) 指派給每個小組。Open the team configuration and assign the default and additional area path(s) to each team. 遵循本文稍後提供的步驟:開啟 [ 小組設定 ],並 將 [小組預設區域路徑] (s) Follow the steps provided later in this article: Open team settings and Set team default area path(s).
  6. 將工作專案的區域路徑指派給您所定義的區域路徑。Assign the area path of work items to an area path you defined. 使用 大量修改 一次修改多個工作專案。Use bulk modify to modify several work items at once.

注意

雖然您可以將相同的區域路徑指派給多個小組,如果有兩個小組在同一組工作專案上宣告擁有權,這樣做可能會造成問題。While you can assign the same area path to more than one team, doing so can cause problems if two teams claim ownership over the same set of work items. 若要深入瞭解,請參閱關於儀表板 和看板的限制,多個小組的看板的觀點To learn more, see About boards and Kanban, Limitations of multi-team Kanban board views.

您可以視需要執行下列動作:As needed, you can do the following actions at any time:

  • 新增其他子節點Add additional child nodes
  • (根區域路徑以外的區域路徑重新命名) Rename an area path (except the root area path)
  • 移動另一個節點下的子節點Move a child node under another node
  • 刪除子節點Delete a child node
  • 重新命名小組Rename a team
  • 變更對小組進行的區域路徑指派Change the area path assignments made to a team

開啟專案設定,列出專案區域Open Project Settings, list project areas

專案設定 面板專案設定為專案定義區域和反覆運算 > > ****。Define both areas and iterations for a project from the Project Settings > Boards > Project configuration.

專案設定 內容的 工作 頁面定義區域和反覆運算。Define both areas and iterations from the Work pages of the Project Settings context. 從使用者內容中,選擇 [ 設定] 以開啟管理內容

  • 從您的 web 入口網站中,選擇 [ (1]) [ 專案設定],選擇 [ (2) 專案 設定],然後 (3) 區域From your web portal, choose (1) Project settings, choose (2) Project configuration and then (3) Areas.

    專案設定>專案設定Project Settings>Project Configuration

  1. 從專案的入口網站中,選擇 [ 專案設定]

    開啟管理內容,專案層級Open Admin context, project level

    如果您目前是在小組內容中工作,請將滑鼠停留在 設定  齒輪圖示上, 然後選擇 [ 專案設定]。If you're currently working from a team context, then hover over Settings gear icon and choose Project settings.

    開啟專案設定、水準導覽Open Project Settings, horizontal nav

  2. 選擇 [ 工作]。Choose Work.

  • 從入口網站中,選擇 [ 專案設定] 以開啟 [專案管理] 頁面。 然後選擇 [ 區域]。Then choose Areas.

    開啟專案管理頁面


新增區域路徑Add an area path

依預設,只會定義一個區域。Only one area is defined, by default. 在專案的根區域路徑下加入區域路徑,或在另一個區域路徑中加入子系路徑。Add area paths under the root area path for the project, or as a child to another area path.

區域、為專案定義的預設值Areas, defaults defined for project

  • 若要加入子節點,請反白顯示區域路徑,然後選擇 [ 新增子 系]。To add a child node, highlight the area path and then choose New child. (選擇性)您可以選取 [區域路徑],然後選擇 [ 新增子 系]。

    為節點輸入 (255 個字元或較少) 的名稱。Enter a name (255 characters or less) for the node. 如需其他名稱限制,請參閱 關於區域和反復專案的命名限制。For additional name restrictions, see About areas and iterations, Naming restrictions.

    新增區域路徑Add a new area path

  • 若要加入子節點,請反白顯示區域路徑,然後選擇 [ 新增子 系]。To add a child node, highlight the area path and then choose New child. (選擇性)您可以選取 [區域路徑] 的 設定 ,然後選擇 [ 新增子 系]。

    為節點輸入 (255 個字元或較少) 的名稱。Enter a name (255 characters or less) for the node. 如需其他名稱限制,請參閱 關於區域和反復專案的命名限制。For additional name restrictions, see About areas and iterations, Naming restrictions.

    新增區域路徑(2017和更早版本)Add a new area path, 2017 and earlier versions

  1. 開啟 [ 區域]。Open Areas.

    開啟針對專案定義的 [區域] 頁面

    在 [區域] 頁面上,您可以設定用來篩選待處理專案的預設區域路徑。From the areas page, you can set the default area path used to filter the backlog. 當使用者建立新的工作專案時,也會使用預設區域路徑。The default area path is also used when new work items a user creates new work items.

  2. 將新的子節點新增至您選取的區域。Add a new child node to the area you've selected.

    建立新的區域節點

開啟小組設定、列出小組區域路徑Open team settings, list team area paths

您可以從 [小組設定] 設定小組預設值。You set team defaults from team settings. 如果您不是小組系統管理員,請 加入成為一個系統管理員。If you're not a team administrator, get added as one. 只有小組或專案系統管理員可以變更小組設定。Only team or project administrators can change team settings.

  1. 開啟您的專案,然後選取 [ 專案設定 > 小組 設定 > 區域]。Open your project, and then select Project settings > Team configuration > Areas.

    專案設定,[小組設定] 頁面

  2. 如果您需要切換小組內容,請使用階層連結中的小組選取器。If you need to switch the team context, use the team selector within the breadcrumbs.

    小組設定,小組階層連結Team Configuration, Team breadcrumb

您可以從上方導覽列開啟 [小組設定]。You open team settings from the upper navigation bar. 選取您要的小組,然後選擇 [ 小組設定] 如需切換小組焦點的詳細資訊,請參閱 切換專案、存放庫、小組For more information about switching your team focus, see Switch project, repository, team

開啟小組設定Open team settings

從小組設定檔開啟小組設定Open team settings from the team profile

您可以從專案設定中定義區域和反復 專案 > Team configurationYou define both areas and iterations from Project Settings > Team configuration. 您可以從小組工作追蹤待辦專案、面板或儀表板快速流覽至該專案。You can quickly navigate to it from a team work tracking backlog, board, or dashboard.

  1. 開啟小組的待處理專案或面板,然後選擇 [ team profile > team Settings]。

    我們將在此開啟 Fabrikam 光纖小組的面板,並從該處開啟小組設定檔。Here we open the Board for the Fabrikam Fiber team and from there the team profile.

    工作待處理專案或面板,選擇小組設定檔圖示Work Backlog or Board, choose team profile icon

  2. 選擇 [反復專案] 和 [區域]。Choose Iterations and areas.

    小組設定檔,選擇反復專案和區域Team Profile, choose Iterations and area

  3. 如果您需要切換小組內容,請使用階層連結中的小組選取器。If you need to switch the team context, use the team selector within the breadcrumbs.

    小組設定、小組階層連結、TFS 2019Team Configuration, Team breadcrumb, TFS 2019

設定小組區域路徑 (s) Set team area path(s)

所有指派給小組區域路徑的工作專案都會出現在該小組的待處理專案和麵板上。All work items that are assigned to a team area path appear on the backlogs and boards for that team. 您可以選取一或多個區域路徑,並選擇性地包含其子領域路徑。You can select one or more area paths and optionally include their subarea paths. 當您想要支援跨多個小組或區域完成的工作匯總查看時,請選擇包含區域路徑。Choose to include subarea paths when you want to support rollup views of work done across several teams or areas.

所有指派給針對小組選取之區域路徑的工作專案,都會出現在該小組的待處理專案和麵板上。All work items assigned to the area paths selected for a team appear on the backlogs and boards for that team. 您可以選取單一區域路徑,並選擇性地包含其子領域路徑。You can select a single area path, and optionally include their subarea paths. 當您想要支援跨多個小組或區域完成的工作匯總查看時,請選擇包含區域路徑。Choose to include subarea paths when you want to support rollup views of work done across several teams or areas.

預設區域路徑會決定指派給從小組內容建立之工作專案的預設區域路徑。The default area path determines the default area path assigned to work items that are created from the team context.

重要

出現在多個小組的看板上的工作專案,可以產生不符合您預期的查詢結果。Work items that appear on more than one team's Kanban board can yield query results that don't meet your expectations. 因為每個小組都可以自訂儀表板面板資料 泳道,所以指派給出現在不同面板上工作專案的值可能不相同。Because each team can customize the Kanban board columns and swimlanes, the values assigned to work items which appear on different boards may not be the same. 解決此問題的主要工作是依小組區域路徑維護工作專案的單一擁有權。The primary work around for this issue is to maintain single ownership of work items by team area path.

  1. 開啟小組內容的 區域Open Areas for the team context.

    在這裡,我們會示範 Fabrikam 光纖團隊的區域。Here, we show the Areas for the Fabrikam Fiber team.

    小組的區域頁面Area page for team

  2. 針對每個小組選擇要使用的區域路徑 (s) 。Choose the area path(s) to be active for each team.

    小組的 [工作]、[反復專案] 頁面Work, Iterations page for team

    在此情況下,我們選擇啟用專案的子領域路徑。In this instance, we choose to activate the subarea paths for the project. 管理小組現在可以追蹤所有小組之間的進度。The management team can now track progress across all teams.

    指派給小組的多個區域路徑

  3. 當您完成時,請重新整理小組的產品待處理專案(backlog)頁面,您會看到指派給小組的工作專案。When you've finished, refresh the product backlog page for the team, and you'll see those work items assigned to the team. 將區域路徑加入至顯示的資料行,以查看對工作專案所做的指派。Add area path to the columns shown to see the assignments made to work items.

    預設小組的待處理專案視圖

    將區域路徑資料行新增至待處理專案

  1. 開啟小組內容的 區域Open Areas for the team context.

    在這裡,我們會示範 Fabrikam 光纖團隊的區域。Here, we show the Areas for the Fabrikam Fiber team.

    Team、內部部署版本的分區頁Area page for team, on-premises versions

  2. 針對每個小組選擇要使用的區域路徑 (s) 。Choose the area path(s) to be active for each team.

    小組、內部部署版本的 [工作]、[反復專案] 頁面Work, Iterations page for team, on-premises versions

    在此情況下,我們選擇啟用專案的所有三個子領域路徑。In this instance, we choose to activate all three subarea paths for the project. 管理小組現在可以追蹤所有三個小組的進度。The management team can now track progress across all three teams.

    指派給小組、內部部署版本的多個區域路徑

  3. 當您完成時,請重新整理小組的產品待處理專案(backlog)頁面,您會看到指派給小組的工作專案。When you've finished, refresh the product backlog page for the team, and you'll see those work items assigned to the team. 將區域路徑加入至顯示的資料行,以查看對工作專案所做的指派。Add area path to the columns shown to see the assignments made to work items.

    預設小組的待處理專案視圖,內部部署版本Backlog view of default team, on-premises versions

  1. 開啟小組內容的 [區域管理] 頁面。Open the Areas admin page for the team context.

    在這裡,我們會流覽至 Fabrikam 光纖小組。Here, we navigate to the Fabrikam Fiber team. 核取方塊會指出為小組選取的區域路徑。The checked box indicates the area paths selected for the team. 若要排除子領域,請從 [區域路徑] 內容功能表中選取選項。To exclude sub-areas, select the option from the area path context menu.

    Fabrikam 光纖小組的工作、區域頁面

  2. 重新整理小組的產品待處理專案(backlog)頁面,您將只會看到指派給 Fabrikam 光纖區域路徑的工作專案。Refresh the product backlog page for the team, and you'll see only those work items assigned to the Fabrikam Fiber area path.

    Fabrikam 光纖小組的產品待處理專案

重新命名、移動或刪除區域路徑Rename, move, or delete an area path

系統會自動更新參考更新區域路徑的工作專案和查詢。The system automatically updates work items and queries that reference your updated area path.

  1. 若要重新命名區域或反復專案路徑,請選擇節點的 [ 動作] ,然後選取 [ 編輯]。

    [順序]、[開啟工作 > 專案設定] 的螢幕擷取畫面Screenshot of sequence, Open Work > Project Configuration

  2. 在開啟的對話方塊中,輸入新的名稱。In the dialog that opens, enter the new name.

    [編輯區域] 對話方塊的螢幕擷取畫面。Screenshot of Edit area dialog.

  3. 若要移動階層內的節點,請變更 [位置] 欄位。To move the node within the hierarchy, change the Location field.

  4. 若要刪除節點,請從 [動作] 功能表中選擇 [ 刪除 ] 選項。To delete a node, choose the Delete option from the actions menu.

注意

當您刪除區域節點或變更節點的 [位置] 欄位時,系統會自動使用您在刪除提示中輸入的節點來更新現有的工作專案。When you delete an area node or change the Location field for a node, the system automatically updates the existing work items with the node that you enter at the deletion prompt.

  1. 若要重新命名區域或反復專案路徑,請選擇節點的 [ 動作] ,然後選取 [ 編輯]。

  2. 在開啟的對話方塊中,輸入新的名稱。In the dialog that opens, enter the new name.

  3. 若要移動階層內的節點,請變更 [位置] 欄位。To move the node within the hierarchy, change the Location field.

  4. 若要刪除節點,請從 [動作] 功能表中選擇 [ 刪除 ] 選項。To delete a node, choose the Delete option from the actions menu.

依區域的圖表進度Chart progress by area

您可以快速地產生 查詢 ,以根據區域路徑來查看進度。You can quickly generate queries to view the progress based on an area path. 例如, 視覺化指派給每個小組區域路徑的工作專案進度,如下列堆疊橫條圖所示。For example, visualize progress of work items that are assigned to each team's area path, as shown in the following stacked bar chart. 選擇 [節點名稱] 以取得區域路徑的分葉節點。Choose Node Name to get the leaf node of the area path.

依區域和狀態的堆疊橫條圖

問答集Q & A

問:我必須將區域路徑指派給小組嗎?Q: Do I have to assign an area path to a team?

答: 否。A: No. 您可以將區域路徑指派給小組,讓指派給該區域路徑的工作專案出現在小組的待處理專案和麵板上。You assign area paths to teams so that the work items assigned to that area path appear on the team's backlogs and boards. 依預設,所有工作專案都會指派給根區域路徑。By default, all work items get assigned to the root area path. 這些工作專案會出現在針對專案所定義的預設小組中。These work items appear in the default team that's defined for the project.

下一步Next steps

如您所見,區域路徑在支援 Agile 工具、小組和工作專案方面扮演著重要的角色。As you can see, area paths play a major role in supporting Agile tools, teams, and managing work items. 從下列文章中深入瞭解如何使用這些欄位:Learn more about working with these fields from the following articles:

程式設計資源Programmatic resources