TFS:不允许将工作项类型添加为链接 [英] TFS: Work item type is not allowed to be added as a link

查看:69
本文介绍了TFS:不允许将工作项类型添加为链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚完成生成自定义WIT(工作项类型= CRM案例),我在RequirementCategory的类别的子项中添加了相关信息:

I just finish to generate my custom WIT (work item type= CRM Case), I add the relative information in the categories s child of RequirementCategory:

<?xml version="1.0" encoding="utf-8"?>
<cat:CATEGORIES xmlns:cat="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/categories">
  <CATEGORY refname="Microsoft.FeatureCategory" name="Feature Category">
    <DEFAULTWORKITEMTYPE name="Feature" />
  </CATEGORY>
  <CATEGORY refname="Microsoft.RequirementCategory" name="Requirement Category">
    <DEFAULTWORKITEMTYPE name="User Story" />
    <WORKITEMTYPE name="CRM Case" />
  </CATEGORY>
  <CATEGORY refname="Microsoft.TestCaseCategory" name="Test Case Category">
    <DEFAULTWORKITEMTYPE name="Test Case" />
  </CATEGORY>

然后将其添加到流程配置"中,以指定使用的新字段和颜色:

Then I add it in the Process Configuration to specify the new field used and the color:

我现在的问题是,我可以将"CRM案例"关联为一般的用户故事"链接,但不能将其关联为实现,我该怎么做?如果您问我为什么要这样做,是因为我想在创建查询时检索与用户案例关联的测试用例.

My problem now is that I can associate the "CRM Case" as a general "User Story" Link but I can't associate as implementation, how can I do it? If you are asking why I want do it is because I want retrieve the test case associate to a User Story when I create a query.

我在做错什么或忘记了什么?

What am I doing wrong or forgetting?

推荐答案

您需要使用 LinksControlOptions 元素定义用于控制哪些链接可以添加到工作项以及默认列的选项.您想要在工作项中的链接列表中显示的内容.

You need to use the LinksControlOptions element to define the options for controlling what links can be added to a work item and the default columns that you want to appear for the list of links in a work item.

在将链接控件添加到工作项表单时,可以指定筛选器,这些筛选器限制用户可以查看和创建的链接类型以及用户可以创建链接的工作项的类型.

When you add a links control to a work item form, you can specify filters that restrict the types of links that users can be view and create and the types of work items to which users can create links.

有关更多详细信息,请参阅 LinksControlOptions XML元素(Web表单),该主题适用于团队项目针对托管XML和本地XML( TFS 2017及更高版本)流程模型的自定义.

For more details please refer LinksControlOptions XML elements (Web form), this topic applies to team project customization for Hosted XML and On-premises XML (TFS 2017 and later versions) process models.

这篇关于TFS:不允许将工作项类型添加为链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆