Custom rule in work item verifying that user belongs to a user group
I have a sitiation where I need to create a rule for the work item which will verify whether the user who created this item belongs to a particular Team Foundation group. So, my code should be something like this:
<FIELD name "Release" refname="CMAS.Release" type="String" reportable="detail">
<WHENNOT field="System.CreatedBy" value="[TEAM FOUNDATION]\QATeam">
The problem is that the value of the CreatedBy field is a real user that belongs to the group [TEAM FOUNDATION]\QATeam and not the value "[TEAM FOUNDATION]\QATeam".
Thanks for the feedback Lana. We have a similar story already on our backlog. That story is a bit bigger and adds granular permissions to a work item, which would result in the same behavior.
Feel free to comment if you feel that having permissions on a work item would you work for you.
TFS Program Manager