将工作项链接到标签
有没有办法将工作项链接到标签。当我在 Visual Studio 中创建新的工作项时,在“所有链接”下,我可以选择许多不同的链接类型,例如变更集、版本化项目等,但没有标签类型。
我想要这样做的原因是,我标记我的版本(如版本 1.0、版本 1.1),并且我想将 Bug 与我的软件的特定版本相关联。
是否不支持将工作项链接到标签,或者我应该如何将错误关联到我的软件版本?
更新: 我遵循 Visual Studio TFS 分支指南 2010。
Is there a way to Link a WorkItem to a Label. Under "All Links" when I create a new WorkItem in Visual Studio I can select many diffrent Link Types, like Changeset, VersionedItem, etc, but theres no type for Label.
The reason why I want to do it is, that I label my releases (like Version 1.0, Version 1.1) and I want to associate a Bug to a specific version of my software.
Isn´t it support to link a WorkItem to a Label or how should I associate a Bug to a version of my software?
Update:
I´m following the Single Team Branching Model (one Dev and one Main branch) documented in the Visual Studio TFS Branching Guide 2010.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您无法链接到标签。但是,您可以通过其他方式实现您的目标。
首先,我建议使用分支而不是标签来跟踪多个发布的版本。在我看来,使用分支是比标签更好的机制。另请参阅 codeplex 上的分支指南
要将错误链接到软件版本,请使用工作项。该字段正是用于此目的。
You cannot link to a label. However you can achieve your goal in other ways.
First of all, I suggest to use branching instead of labelling to keep track of multiple released versions. In my opninion using branches is a better mechanism then labelling. See also the branching guidance on codeplex
To link your bug to a version of your software, use the Iteration Path in the work item. This field is exactly for that purpose.
使用迭代路径字段是一种选择,它使您能够跟踪版本之间的工作项。
但如果你想要更高的分辨率,还有另一种方法:
Team Build 在每次构建之前用标签标记源代码。 CMMI 项目模板中的错误项类型包含名为“Found In”和“Fixed In”的字段。在这些字段中,您可以从构建标签中进行选择。
使用这些字段允许您用两个特定版本标记任何工作项。一张是被发现的时间,一张是修复的时间。
此外,在构建成功完成并且所有测试都顺利运行后,Team Build 会使用构建标签更新每个工作项的“固定在”字段。
如果您的工作项类型上没有这些字段,您始终可以使用 TFS Power Tools 附带的工作项模板编辑器添加它们。
Using iteration path field is one option and it gives you the ability to track a work item between versions.
But if you want higher resolution, there is another way:
Team Build marks source code with a label before every build. The bug item type in CMMI project template contains fields called "Found In" and "Fixed In". In these fields you can select from build labels.
Use of these fields allow you to mark any work item with two specific builds. One for when it was found and one for when it was fixed.
Additionally Team Build updates "Fixed In" field of every work item with the label of the build, after the build completes successfully and all tests are ran without a problem.
If you don't have these fields on your work item type, you can always add them using the work item template editor that comes with TFS Power Tools.