TFS 2017 工作项表单(新)- 从 TFVC 转换,现在缺少表单上的开发部分 [英] TFS 2017 Work Item Forms (new) - conversion from TFVC, now missing Development section on form

查看:19
本文介绍了TFS 2017 工作项表单(新)- 从 TFVC 转换,现在缺少表单上的开发部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 TFS 2017 上运行,最近从 2015 升级.

Running on TFS 2017, recently upgraded from 2015.

升级后不久,我开始将现有的 TFVC 存储库转换为 Git.到目前为止,这方面一切顺利,但现在让我感到困惑的是,工作项任务表单似乎不正确\基于 TFVC.

Soon after the upgrade I started to convert my existing TFVC repositories to Git. So far all is going well on that side, however what's puzzled me now is that the Work Item Task form seems to be incorrect\based upon TFVC.

我正在使用 2017 年随附的新表格和一个 Playground 集合,我也显示了正确的表格.

I am using the new forms that come with 2017 and a Playground collection I also have displays the correct form.

附加屏幕截图可能比文字更能解释它:

The attach screen shots will probably explain it a lot better than words:

我不想要这个:

这正是我所期待的:

如您所见,第一个缺少第二个中显示的开发组,这使得创建拉取请求等变得更加容易.

As you can see, the first one is missing the Development Group shown in the second, that makes creating Pull requests etc so much easier.

那么,我在这里错过了什么?

So, what am I missing here?

我应该补充一点,Playground 是在 TFS 2017 上创建的,另一个缺少 Development 标头的集合来自 2015 年的实例.我假设某处可能需要更改某种设置 - 无论是在 GUI 上还是在 witadmin 上.无论是那个还是这都是不可能的,我基本上被卡住了.如果是 witadmin,那么我会比回复告诉我更感激,因为该命令使我感到困惑.

I should add that the Playground was created on TFS 2017, the other collection with the missing Development header was from a 2015 instance. I'm assuming there's some sort of setting somewhere that might need to be changed - either on the GUI or witadmin. Either that or this just isn't possible and I'm basically stuck. If it is witadmin then I'd appreciate more than a reply telling me it is since that command confuses the heebies out of me.

推荐答案

实际上工作项表单上缺失的组与从 TFVC 迁移到 Git 无关.这是由旧的工作项表单自动转换为新的 Web 布局样式引起的.

Actually the missing group on the work item form has nothing to do with moving from TFVC to Git. It's caused by the automatic conversion of the old work item form to the new web layout style.

遗憾的是,TFS Power Tools 模板编辑器尚不支持新布局.因此您需要手动编辑流程模板 XML 文件.

Unfortunately the TFS Power Tools template editor doesn't support the new layout, yet. So you need to edit the process template XML files by hand.

您必须做的第一件事是使用 witadmin.exe 工具导出您的工作项类型配置,如下所述:导入、导出和管理工作项类型

First thing you have to do, is to export your work item type configuration using the witadmin.exe tool as described here: Import, export, and manage work item types

在文件中转到 部分.仅针对缺少的开发组将以下内容添加到最后一个

元素:

In the file go to the <WebLayout> section. Just for the missing development group add the following to the last <Section> element:

<Group Label="Development">
  <Control Type="LinksControl" Name="Development">
    <LinksControlOptions ViewMode="Dynamic" ZeroDataExperience="Development" ShowCallToAction="true">
      <ListViewOptions GroupLinks="false"></ListViewOptions>
      <LinkFilters>
        <ExternalLinkFilter Type="Build" />
        <ExternalLinkFilter Type="Pull Request" />
        <ExternalLinkFilter Type="Branch" />
        <ExternalLinkFilter Type="Fixed in Commit" />
        <ExternalLinkFilter Type="Fixed in Changeset" />
        <ExternalLinkFilter Type="Source Code File" />
      </LinkFilters>
    </LinksControlOptions>
  </Control>
</Group>

根据我的经验,这并不是表格中唯一缺少的东西.为了获得与新创建的(在 TFS 2017 上)项目相同的外观,我导出了我的流程模板所基于的标准流程模板(例如 Scrum,HowTo) 并将整个 元素复制到我的 任务.xml.之后我添加了我的自定义并将 WITD 上传到项目中.

From my experience this is not the only thing that's missing on the form. To get the same look as in the newly created (on TFS 2017) project, I exported the standard process template my process template is based on (e.g. Scrum, HowTo) and copied the whole <WebLayout> element to my Task.xml. Afterwards I added my customizations and uploaded the WITD to the project.

这篇关于TFS 2017 工作项表单(新)- 从 TFVC 转换,现在缺少表单上的开发部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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