none
WIT AssignedTo field modification

    Question

  • I am trying to get rid of validuser rule that shows all the network users and narrow down the list to the TFS collection group that I did create. This group has 5 users and it is added to the project team....

    Now if I would use the following for allowedvalues :

     <ALLOWEDVALUES expanditems="true">
          <LISTITEM value="[Project]\Contributors" />
      </ALLOWEDVALUES>

    it let me to import WIT and shows in drop down users from the group and also teams of contributors... but I want to 

    have only users in my group..

    So I am trying the following :

    <ALLOWEDVALUES expanditems="true">
        <LISTITEM value="[WorkProcessTestCollection]\JnJContributors" />
      </ALLOWEDVALUES

    or 

    <ALLOWEDVALUES expanditems="true">
        <LISTITEM value="="[Collection]\JnJContributors" />
      </ALLOWEDVALUES

    It does not let me to import WIT with the following error :

    WorkProcessTestCollection  is the name of collection and JnJContributors  is TFS group that actually have access to the project.

    So how to specify <ALLOWEDVALUES expanditems="true">
        <LISTITEM value="="[Collection]\JnJContributors" />
      </ALLOWEDVALUES   so that only users in the JnJContributors will be on the AssignedTo drop down and nothing else. 

      It strange that it does recognize"[Project]\Contributors"  and does not recognize"[Collection]\JnJContributors"

    Thanks

    Friday, July 11, 2014 9:58 PM

Answers

  • Hi,

    Use it as [global]\JnJContributors and it will work. I tested this with TFS 2013.2, but this should work  for any TFS (2010, 2012.x, 2013.x).

    Here is my collection TFS security group

    <FIELD name="Assigned To" refname="System.AssignedTo" type="String" syncnamechanges="true" reportable="dimension">
            <HELPTEXT>The person currently working on this bug</HELPTEXT>
            <ALLOWEDVALUES expanditems="true" filteritems="excludegroups">
    
        <LISTITEM value="[global]\DemoCollectionContributors" />
    
      </ALLOWEDVALUES>
            <VALIDUSER />
          </FIELD>

    I customized Bug WIT AssignedTo field as above and it works like below.

    Cheers!

    Chaminda



    • Edited by chamindacMVP Saturday, July 12, 2014 5:30 PM
    • Marked as answer by gk222 Monday, July 14, 2014 4:16 PM
    Saturday, July 12, 2014 5:26 PM

All replies

  • Hi,

    Use it as [global]\JnJContributors and it will work. I tested this with TFS 2013.2, but this should work  for any TFS (2010, 2012.x, 2013.x).

    Here is my collection TFS security group

    <FIELD name="Assigned To" refname="System.AssignedTo" type="String" syncnamechanges="true" reportable="dimension">
            <HELPTEXT>The person currently working on this bug</HELPTEXT>
            <ALLOWEDVALUES expanditems="true" filteritems="excludegroups">
    
        <LISTITEM value="[global]\DemoCollectionContributors" />
    
      </ALLOWEDVALUES>
            <VALIDUSER />
          </FIELD>

    I customized Bug WIT AssignedTo field as above and it works like below.

    Cheers!

    Chaminda



    • Edited by chamindacMVP Saturday, July 12, 2014 5:30 PM
    • Marked as answer by gk222 Monday, July 14, 2014 4:16 PM
    Saturday, July 12, 2014 5:26 PM
  • Thanks a lot, it did work for me.... turned out that main issue was that I did not noticed  exclude  group... 

    Anyway, not everything works.. Thanks again.

    Monday, July 14, 2014 3:50 PM