无法在新项目表单上公开现有控件 [英] Unable to expose existing control on a new project form

查看:19
本文介绍了无法在新项目表单上公开现有控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TFS 2017 内部部署版本 15.117.27024.0

TFS 2017 on-premise Version 15.117.27024.0

我有一个自定义工作项字段,它作为全局字段存在,并且已添加到同一实例上其他项目的工作项模板中,没有问题.我已将自定义字段添加到新 TFS 项目(使用与其他项目相同的 TFS 项目模板)的用户故事模板,并将其添加到值区域"控件下的布局.无论我尝试什么,我都无法在 TFS 的 Web UI 中显示该字段,但是当我使用 Visual Studio Process Editor 加载项预览表单时,该字段会显示.

I have a custom Work Item field which exists as a global field, and has been added to work item templates in other projects on the same instance without issue. I've added the custom field to the User Story template for a new TFS Project (which uses the same TFS project template as other projects), and added it to the layout under the 'Value Area' control. Whatever I try, I cannot get the field to show in the web UI of TFS, but when I preview form using the Visual Studio Process Editor add-in, the field shows.

我尝试将控件移动到另一个组、不同的列、重新排序列中的控件、清除缓存、尝试隐身、尝试另一台有权访问同一项目的用户机器.当其他用户编辑模板时,他可以在模板编辑器中看到我的新字段.

I've tried moving the control into another group, a different column, re-ordering the controls in the column, cleared cache, tried incognito, tried another users machine who has access to the same project. When the other user edits the template, he can see my new field in the template editor.

使用 witadmin 导出 WIT 的 XML,元素如预期的那样作为字段和正确组中的控件存在.列.

Exported the XML for the WIT using witadmin, and the elements are there as expected as a Field and as a control in the correct group & column.

推荐答案

在 TFS 2017 及更高版本中,字段也应存在于 中,以便在 TFS Web 界面中显示.

In TFS 2017 and higher versions the fields should be exist also in the <WebLayout> to be displaying in the TFS web interface.

在您的情况下,该字段仅存在于 中,因此您只能在 Visual Studio 中看到他.

In your case the field exist only in the <Layout> so you can see him only in Visual Studio.

这篇关于无法在新项目表单上公开现有控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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