如何在签入中禁用任务的自动完成状态 [英] How to disable auto done status for task in checkin

查看:20
本文介绍了如何在签入中禁用任务的自动完成状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚开始使用 TFS 2012,这对于 2008 年的 VS2012 可用性来说似乎是一个巨大的升级.

We just moved to use TFS 2012 which seems to be a huge upgrade for 2008 in usability with VS2012.

但是,如果您将工作与某项任务联系起来,我的工作"功能有一个非常烦人的功能.将任务与工作项连接后,对任何分支的任何签入都会将任务标记为完成"状态.我怎样才能禁用它?我想要开发分支,以便我可以在开发过程中进行小的提交,但是使用此功能,如果我这样做,我无法将任务与我当前的工作联系起来.做到这一点的唯一方法(我知道)是在我将所有小提交从我的个人分支合并到 master 之前,为我当前的工作选择任务.是的,这是可行的,但它的工作流程并不像它想象的那么好.

However, there is a very annoying feature with "My Work" feature if you connect your work with a certain task. After you have connected the task with your work item, any checkin to any branch will mark the task to "done" status. How can I disable this? I'd like to have the development branch so that I can make small commits during development but with this feature I cannot connect the task with my current work if I do so. The only way to do this (which I know) is to select the task for my current work just before I merge all small commits from my personal branch to master. Yes this is doable but it isn't as nice workflow as it may be.

使用 Scrum 模板中的任务板功能,在工作完成后移动任务是工作流程中微不足道且常见的部分.自动完成移动是非常烦人的自动化,不应该存在.

With taskboard feature in scrum template moving tasks to done after work is done is anyway trivial and common part of workflow. Automatic done movement is pretty annoying automation which shouldn't be there.

所以我的问题是:如何禁用它?此功能是模板的一部分还是与 TFS 工作项管理进行更深入的集成?

So my questions are: How to disable this? Is this feature part of template or some much more deeper integration with TFS work item management?

我们使用的是 Microsoft 的 Scrum 2.0 模板.

We are using Scrum 2.0 template from Microsoft.

推荐答案

当您在 Pending Changes 面板中准备签入您的修复并将您的工作项与变更集关联时,您应该将Resolve"更改为Associate"(或 Scrum 中的任何内容).

When you are in the Pending Changes panel ready to check in your fix and you associate you work item with the changeset you should change "Resolve" to "Associate" (or what ever it is in Scrum).

要使其成为默认值更加复杂.

To make this the Default is more complicated.

您需要编辑工作项模板定义,以了解您正在使用的工作项类型(错误、任务等).

You will need to edit the Work Item Template definition for the types of work items you are using (Bug, Task, etc.).

一个选项是完全删除解决"选项,您可以按如下方式执行此操作:

One option is to remove the "Resolve" option altogether, you can do this as follows:

打开您的工作项类型的 XML(如果您愿意,也可以打开 Power Toys 中的 GUI):查找并删除:

Open the XML for your Work Item Type (or the GUI in the Power Toys if you prefer): Find and remove the:

  • <代码><ACTION value="Microsoft.VSTS.Actions.Checkin"/></ACTION>

模板中的部分 - 它将在 中针对 2 个状态之间的特定转换.

section from your template - it will be in the <TRANSITIONS> against a particular transition between 2 states.

这样做意味着 TFS 永远不会将您的工作项作为签入的一部分进行转换,您每次都必须这样做.

Doing this means TFS will never transition your work item as part of your checkin, you will have to do it every time.

另一个选项是添加一个没有签入操作的新工作项状态"(例如开发中").然后,您可以将您的工作项转换到此状态,同时处理它们,然后返回到已分配"(或其他)状态,然后再将它们签入并解决"它们.

The other option is to add a new work item "State" (e.g. "Under Development") that doesn't have an ACTION of Checkin. You can then transition you work items to this state whist working on them and then back to "Assigned" (or whatever) before checking them in in and "Resolving" them.

来自 Wrox 的 Professional Team Foundation Server 2010 一书 将有所帮助使用 WIT 编辑.

The Professional Team Foundation Server 2010 book from Wrox will help with WIT editing.

可能有更多方法可以做到这一点,这完全取决于您工作的团队和环境:)

There are probably more ways to do this, it all depends on the team and environment you work in :).

还有另一种方式 这样做 只会影响您的客户端机器:

There is also another way to do this that only affects your client machine:

要使关联"成为默认操作(而不是解决"),请设置注册表项

To make "Associate" the default action (instead of "Resolve"), set the registry key

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\TeamFoundation\SourceControl\Behavior\ResolveAsDefaultCheckinActionFalse.

NB12.0(对于 VS2013)替换为 14.0 用于 VS2015,11.0 用于 VS 2012 或 10.0 用于 VS 2010.

N.B. Replace 12.0 (for VS2013) with 14.0 for VS2015, 11.0 for VS 2012 or 10.0 for VS 2010.

这篇关于如何在签入中禁用任务的自动完成状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆