TFS “Assign To” is showing too many users

前端 未结 6 1450
离开以前
离开以前 2020-12-15 04:15

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 tha

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 04:55

    Here's what you should do:

    1. Open the Visual Studio Command Prompt. This will give you a command line window with the PATH set to run VS / TFS tools
    2. 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]

      This will give you the WIT's definition, in XML format.

    3. Open the XML file. You will edit the rules for the Assigned To field. Find the term "System.AssignedTo"
    4. In the Allowed Values rule element, modify (or add if none exists) your List Item element to limit the values to members of one (or more) TFS / Active Directory group(s). Your field definition should look like this:


    The person currently working on this bug






    Importing your changes:

    1. Save your file.
    2. In the command line window type the following:
      witadmin importwitd /collection:collectionurl /p:project /f:filename

    That's it. Your work item type is now limited to the people you want.

提交回复
热议问题