TFS 工作项类型的自定义控件
我将用一个例子来解释我的问题。让我们考虑 TFS“Bug”工作项类型。在错误工作项类型中,有一个“开发人员”和“测试人员”下拉列表。使用内置规则类型,我们只能将“VALIDUSER”分配给每个下拉列表。这会在下拉列表中显示所有 Windows 用户。我希望能够在“TeamMembers”节点下创建自定义子团队并将成员分配给子团队。例如,如下面的快照所示:
替代文本 http://www.imagechicken.com/uploads /1267041644094323600.png
“开发人员”下拉列表应显示新“开发人员”子团队的用户,而不是所有 VALIDUSER。同样,“测试人员”下拉列表应显示来自新“测试人员”子团队的用户。
替代文本 http://www.imagechicken.com/uploads/1267042457029195500.png
我我正在考虑创建自定义工作项控件,然后调用 TFS API 来获取自定义子团队成员。
如果有人以前从事过此工作或有任何更好(且简单:))的想法来实现上述目标,请提出建议。
更新
我刚刚创建了一个自定义工作项控件并调用 TFS API 来获取自定义组中的成员列表。这样就完成了。但我仍然想知道是否有更好的方法来达到相同的结果。
I will explain my question with an example. Lets consider TFS "Bug" work item type. In the bug work item type there is a "Developer" and "Tester" dropdown. Using the inbuilt rule types we can only assign "VALIDUSER" to each drop down. This displays all the windows user in the drop down. I want to be able to create a custom subteam under "TeamMembers" node and assign members to the sub team. For example as shown in the below snapshot:
alt text http://www.imagechicken.com/uploads/1267041644094323600.png
The "Developer" drop down should display users from the new "Developer" subteam and not all the VALIDUSER. Similarly "Tester" drop down should display users from the new "Tester" subteam.
alt text http://www.imagechicken.com/uploads/1267042457029195500.png
I am thinking of creating a custom work item control and then call the TFS API to fetch the custom subteam members.
If anyone has worked on this before or have any better (and simple :)) ideas to achieve the above please suggest.
Update
I just created a custom work item control and called TFS API to get the list of members in the custom group. So this is done. But I would still like to know if there is a better way to achieve same results.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯..有更好的方法来做同样的事情..感谢马塞尔!
如何将工作项分配给组并实际拥有 it-show-值列表
Well..There is a better way to do the same.. Thanks to Marcel !!
how-to-assign-a-work-item-to-a-group-and-actually-have-it-show-a-list-of-values