While trying to import a work item definition into a team project I received the following error message:
Did you notice the double quotes in the value. This caused TFS to misinterpret the value and of course “[Project]\Contributors” is a non existing user. Removing the quotes solved the issue:
“TF26204: The account you entered is not recognized. Contact your Team Foundation Server administrator to add your account.”I found out that the issue was causes by a fault in the AssignedTo field assignment. In the rules we added an allowedvalues rule to filter the list to the project contributors. The following xml was used in the Work Item Type Definition:
<FieldDefinition reportable="dimension" refname="System.AssignedTo" name="Assigned To" syncnamechanges="true" type="String"> <ALLOWEDVALUES filteritems="excludegroups"> <LISTITEM value=""[Project]\Contributors"" /> </ALLOWEDVALUES> <HELPTEXT>The person currently working on this task</HELPTEXT> </FieldDefinition>
Did you notice the double quotes in the value. This caused TFS to misinterpret the value and of course “[Project]\Contributors” is a non existing user. Removing the quotes solved the issue:
<FieldDefinition reportable="dimension" refname="System.AssignedTo" name="Assigned To" syncnamechanges="true" type="String"> <ALLOWEDVALUES filteritems="excludegroups"> <LISTITEM value="[Project]\Contributors" /> </ALLOWEDVALUES> <HELPTEXT>The person currently working on this task</HELPTEXT> </FieldDefinition>