Resolve users group membership in AssignedTo on work-item-queries

為{幸葍}努か 提交于 2019-12-02 19:49:01

问题


I assign work-items to user-groups in TFS. Lets say, I have a task assigned to the group [Devlopers]. Now I want to setup the Team Query "My Tasks" so that every member of [Developers] will see the task.

I tried the following operator/value-combinations in the query-editor (the square-brackets are added for visual reasons):

  • [Assigned To] [In Group] [@Me]
  • [Assigned To] [Contains] [@Me]
  • [Assigned To] [=] [@Me]
  • [Assigned To] [In] [@Me]

What I really need is something like @MyGroups instead of @Me. How can one achieve this?

If it isn't possible to this, what is the sence of Assign-To-Group in TFS?


回答1:


I've been wanting to do exactly the same thing, and found the following "work-around" which enables some of the functionality as you want.

For this to work you'll have to either:

  1. create multiple dashboards
  2. create multiple lists, and only show the correct one for the respective group the person is in

bare in mind this is after you have altered the work items to enable assigning to groups. You'll then create a query for each of those groups as you need to specify the group name.

What I did was create a dashboard for each team, and on the dashboard had any "todo" items / change requests / tasks / bugs / etc.

It isn't possible to have a "is in my group" filter, unfortunately.




回答2:


You can't set the field "Assigned To" to a group, TFS only support setting a valid user.

You can change the Work Item Type definition to remove the constraint "validuser" and save any kind of text inside the field but don't expect to get groups that way.

This is a "complaint" many made to Microsoft for years but it stays as it always have been: no group.

You have to change the WIQ (Work Item Query) to use other fields to get the result you want. Looking at the example you gave I strongly encourage you to scope this query with the state, the area and iteration.



来源:https://stackoverflow.com/questions/10174068/resolve-users-group-membership-in-assignedto-on-work-item-queries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!