Bug Assigned To: from TFS group doesn't work, but does with global group
-
Tuesday, September 20, 2011 3:05 PM
I had my Assigned To: set up as follows:
<FIELD name="Assigned To" refname="System.AssignedTo" type="String"> <ALLOWEDVALUES expanditems="true" filteritems="excludegroups"> <LISTITEM value="[Project]\Contributors" /> </ALLOWEDVALUES> <PROHIBITEDVALUES expanditems="true"> <LISTITEM value="tfsservice" /> </PROHIBITEDVALUES> <ALLOWEXISTINGVALUE /> </FIELD>
I thought the above should work, but instead of displaying the project's contributors, it display literally "[test1]/Contributors" for project test1, etc. Not sure why it's not expanding the group. Anyone have any ideas?So, I switched to using a global group:
<FIELD name="Assigned To" refname="System.AssignedTo" type="String"> <ALLOWEDVALUES expanditems="true" filteritems="excludegroups"> <LISTITEM value="emwp\TFS Contributors" /> </ALLOWEDVALUES> <ALLOWEXISTINGVALUE /> </FIELD>
That works, but why doesn't the first snipped work?Thanks,
Brad- Edited by Bfrank1972nyc Tuesday, September 20, 2011 3:06 PM
All Replies
-
Tuesday, September 20, 2011 11:35 PM
This is what works for me,
<FieldDefinition reportable="dimension" refname="Custom.AssignedTo" name="Requested By" type="String"> <ALLOWEDVALUES filteritems="excludegroups"> <LISTITEM value="[project]\Project Administrators" /> <LISTITEM value="[project]\Contributors" /> <LISTITEM value="[project]\Requestors" /> </ALLOWEDVALUES> <HELPTEXT>Assigned To</HELPTEXT> </FieldDefinition>
In the allowed values you have the option to filteritems where you can specify if you would like to exclude group titles as such. Get rid of the expendedItems property from the allowed values. Why do you have the same property set to false in the prohibited values?
HTH
Cheers, Tarun
Please remember to mark the replies as answers if they help.Blog: http://geekswithblogs.net/TarunArora
Subscribe
in a reader- Edited by Tarun__AroraMVP Tuesday, September 20, 2011 11:37 PM
-
Wednesday, September 21, 2011 5:35 PMHmm that didn't work for me at all - FieldDefinition produced an error. Instead I use the FIELD tag and that doesn't produce an error, but it still just lists [<project name>]\Contributors under the dropdown, instead of what is contained in that group. The global group works well enough, just thought someone might have an idea why this isn't working for me - btw I'm using TFS 2010.
-
Thursday, September 22, 2011 12:21 AM
Suprised!
1. Adding a new field
2. If you click on View XML
<FieldDefinition reportable="dimension" refname="custom.RequestedBy" name="Requested By" type="String"> <ALLOWEDVALUES filteritems="excludegroups"> <LISTITEM value="[project]\Project Administrators" /> <LISTITEM value="[project]\Contributors" /> <LISTITEM value="[project]\Requestors" /> </ALLOWEDVALUES> <HELPTEXT>The user or proxy requesting this feature who will utl</HELPTEXT> </FieldDefinition>
3. Adding an allowed values rule,
4. Clicking on View XML
<ListRule filteritems="excludegroups"> <LISTITEM value="[project]\Project Administrators" /> <LISTITEM value="[project]\Contributors" /> <LISTITEM value="[project]\Requestors" /> </ListRule>
5. Lets have a look at the work item now,
Please remember to mark the replies as answers if they help.Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader- Marked As Answer by Vicky SongModerator Wednesday, September 28, 2011 9:12 AM
- Unmarked As Answer by Bfrank1972nyc Friday, October 14, 2011 7:29 PM
-
Thursday, September 22, 2011 12:22 AM
.....
Continuing point 5,
5. Lets have a look at the work item now, a new requested by field,
Does this work for you mate?
Please remember to mark the replies as answers if they help.Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader- Marked As Answer by Vicky SongModerator Wednesday, September 28, 2011 9:12 AM
- Unmarked As Answer by Bfrank1972nyc Friday, October 14, 2011 7:29 PM
-
Wednesday, September 28, 2011 9:13 AMModerator
Hi Brad,
What about your issue now? Does Tarun's reply help you?
Thanks.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
Friday, October 14, 2011 4:17 PM
Hello, apologies for taking so long to reply, swallowed up in a concurrent project.
Thanks very much Tarun for taking the time to document the steps, alas it still doesn't work, some screen shots:
Result I am getting:
Process Tempalte Editor/XML Screen Shots:
-
Friday, August 31, 2012 3:19 PM
I've got the same problem as Brad.
<FieldDefinition reportable="dimension" refname="Custom.AssignedTo" name="Requested By" type="String">
<ALLOWEDVALUES filteritems="excludegroups">
<LISTITEM value="[project]\Contributors" />
</ALLOWEDVALUES>
<HELPTEXT>Assigned To</HELPTEXT>
</FieldDefinition>it display literally "[test1]/Contributors". With a bit more investigation I found out that my Contributors group did not contain any users. After I've added some users, they were shown as expected. I've done a cross test and have added more groups to the ALLOWEDVALUES section, some containing users, others not. All groups with no users were shown literally, whereas groups containing users were expanded.
- Proposed As Answer by Thomas Trotzki Sunday, April 07, 2013 8:27 AM


