Linking Work Items (CMMI)

[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]

You create relationships between Requirements, Tasks, Test Cases, and other work items through the Implementation, Links, All Links and Test Cases tabs on the forms for those work items. This topic describes the controls and data fields that are associated with creating links and hyperlinks.

For more information about how to use links, see 选择可有效地跟踪项目的链接类型. For more information about how to create links, see 在工作项与其他资源之间创建关系.

备注

The process template for MSF for Capability Maturity Model Integration (CMMI) Process Improvement v5.0 provides a few reports that require you to create links between specific work items. Specifically, the Requirements Overview and Requirements Progress reports require you to create links between Requirements and Tasks and between Requirements and Test Cases.

In this topic

  • Link Toolbar Buttons

  • Link Controls and Restrictions

  • Default Link List Data Fields

  • Additional Link Related Fields that Support Query and Reporting

Each tab provides a toolbar, which contains the buttons that the following illustration summarizes:

工作项窗体链接工具栏控件

The following buttons become available only after you perform a specific action:

  • The button to create a work item that is linked to the open work item (添加新链接工作项) becomes available only after you save the open work item.

  • The buttons to open the list of work items in a query (在查询中打开) and in a Microsoft Office client (在 Microsoft Office 中打开) become available only when at least one work item is listed in the links control tab.

  • The buttons to open a work item (打开工作项), edit a link (编辑链接), and delete a link (删除链接) become available only after you click one or more work items listed in the links control tab.

Back to top

All tabs that support creating links between work items are implemented by using the LinksControl element on the work item form. This element controls filtering and restricting the types of work items to which you can link, the types of links that you can create, and whether you can link to work items in another team project. For more information about how to restrict links, see LinksControlOptions 元素.

The following table summarizes the restrictions for all types of work items.

Work item type

Name of links control tab

Link restrictions

Requirement

Task

Implementation

  • Allows only Parent and Child links.

  • Excludes links to work items in other team projects.

Requirement

Test Cases

  • Allows only Tested By links.

  • Allows links only to Test Cases.

  • Excludes links to work items in other team projects.

Requirement

Task

Test Case

Bug

All Links

  • No restrictions.

Test Case

Tested Requirements

  • Allows only Tests links.

  • Allows links to any work item type.

  • Excludes links to work items in other team projects.

Change Request

Issue

Review

Shared Steps

Links

  • No restrictions.

Bug

Test Cases

  • Allows only Tested By links.

  • Allows links only to Test Cases.

  • Excludes links to work items in other team projects.

Back to top

All lists of links display the following data fields:

  • Work item ID

  • Work Item Type

  • Title

  • Assigned to

  • State

  • [Link Comment]

You can add or remove columns from the list of links, and you can customize the default columns and the column order. For more information, see LinksControlOptions 元素.

For more information about these fields, see Titles, IDs, Descriptions, and History (Agile) and Assignments and Workflow (Agile).

The following table describes the [Link Comment] data field. For information about data types and default field values, see 使用工作项字段.

Field Name

Description

Reference Name

Data Type

Default Value for the Reportable Type Attribute

Default Value for the Index Attribute

Link Comment

Contains comments from the team member who created the link. You can configure this attribute field to appear as a column in a list of links on a work item form.

System.Links.Comment

PlainText

None

False

Back to top

Additional Fields and Support Query and Reporting

The following table lists fields that do not appear on the work item forms but that are tracked for each type of work item when you link them. You can use these fields to filter queries and create reports.

Field Name

Description

Reference Name

Data Type

Default Value for the Reportable Type Attribute

Default Value for the Index Attribute

External Link Count

The number of links from the work item to artifacts that are not work items and that are registered through the Team Foundation Linking Service. For more information, see this topic on the Microsoft Web site: Linking Service.

System.ExternalLinkCount

Integer

None

False

Hyper Link Count

The number of hyperlinks that are defined for the work item.

System.HyperLinkCount

Integer

None

False

Related Link Count

The number of links from the work item to other work items.

System.RelatedLinkCount

Integer

None

False

Link Description

Contains the work item type, ID, and title of the work item that is the target of the link. You can configure this link attribute field to appear as a column in a list of links on a work item form.

System.Links.Description

PlainText

None

False

Back to top

请参见

参考

LinksControlOptions 元素

概念

使用在默认和字段定义的系统字段进程 Visual Studio 中 ALM 模板

其他资源

自定义如何通过链接类型关联工作项

Work Items and Workflow (Agile)

Work Item Fields (CMMI)

Work Items and Workflow (CMMI)