TFS“分配给"显示的用户过多 [英] TFS "Assign To" is showing too many users
问题描述
我已连接到 TFS 服务器,当我创建工作项(错误、任务等)时,分配给"显示的用户太多.我找不到限制显示的用户的方法,这会影响连接到服务器的任何其他人.
I am connected to a TFS server, and when I create a work item (Bug, Task, etc.), the "Assign To" shows WAY too many users. I cannot find a way to limit the users shown that will affect anyone else who connects to the server.
例如,我在分配给"下拉菜单下:
For example, I have under the "Assign To" dropdown:
Administrator
LOCALE SERVICE
User 1
User 2
User 3
User 4
User 5
我希望分配给"下拉菜单仅显示:
I want the "Assign To" dropdown to only show:
User 1
User 3
User 5
我将如何执行此操作,以便它在服务器上发生更改,并且如果任何新用户连接到服务器,他们只能在分配给"下拉列表中看到三个用户?
How would I do this, so that it changes on the server, and if anyone new connects to the server, they can only see the three users on the "Assign To" dropdown?
推荐答案
您应该这样做:
- 打开 Visual Studio 命令提示符.这将为您提供一个命令行窗口,其中 PATH 设置为运行 VS/TFS 工具
下载您要修改的工作项类型定义(例如错误、任务):
- Open the Visual Studio Command Prompt. This will give you a command line window with the PATH set to run VS / TFS tools
Download the Work Item Type definition that you want to modify (e.g. Bug, Task):
witadmin exportwitd/collection:collectionurl/p:project/n:typename [/f:filename]
这将以 XML 格式为您提供 WIT 的定义.
This will give you the WIT's definition, in XML format.
<FIELD name="Assigned To" refname="System.AssignedTo" type="String" syncnamechanges="true" reportable="dimension">
<HELPTEXT>当前正在处理此错误的人员</HELPTEXT>
<ALLOWEXISTINGVALUE/>
<ALLOWEDVALUES expanditems="true" filteritems="excludegroups">
<!-- 下面是一个 TFS 组.请注意,您实际上是逐字输入[project]" -->
<LISTITEM value="[项目]\Contributors"/>
<!-- 下面是一个 AD 组.名称和组仅作为示例 -->
<LISTITEM value="MYDOMAIN\Developers"/></ALLOWEDVALUES>
</FIELD>
导入您的更改:
- 保存您的文件.
- 在命令行窗口中键入以下内容:
witadmin importwitd/collection:collectionurl/p:project/f:filename
就是这样.您的工作项类型现在仅限于您想要的人.
That's it. Your work item type is now limited to the people you want.
这篇关于TFS“分配给"显示的用户过多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!