veer9999
veer9999

Reputation: 11

User Specified CUSTOM Work item- with particular group members as drop down list in TFS 2015

User Specified CUSTOM Work item- with particular group members as drop down list in TFS 2015, In VS2015, its working but in TFS 2015 WebPortal its not showing. Showing all the members list added rules:

<FIELD name="Dev Approver" refname="Microsoft.VSTS.Common.DevApprover" type="String" reportable="dimension">
   <ALLOWEXISTINGVALUE />
    <VALIDUSER group="[global]\Dev Approver" />
    <ALLOWEDVALUES for="[global]\Dev Approver" expanditems="true">
      <LISTITEM value="[global]\Dev Approver" />
    </ALLOWEDVALUES>
 </FIELD>

its working in VS2015, but in TFS 2015 Web Portal it is not showing the above group list rather showing all like cache users list recently used members list >

Upvotes: 1

Views: 121

Answers (2)

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31023

I could reproduce your scenario. It's a default behavior. On Web Access, the drop down only shows the recently used members list or just Search option. But if you select someone not in list [global]\Dev Approver, you'll get validation error message like the screenshot below:

enter image description here

Upvotes: 0

nschonni
nschonni

Reputation: 4129

VALIDUSER adds all users in the project. Remove that tag to show just the members of the other team. The "for" on that tag only restricts members of that group from using that set of values.

Upvotes: 1

Related Questions