2

我们目前在新的 TFS 2012 中使用来自微软的 Scrum 2.0 流程模板,但是我们不使用小时作为任务估计,我们只是计算任务。这很容易通过将每个任务值设置为默认值 1 并将该字段设置为任务属性表单中的只读来实现。

但是原始模板使用小时作为任务单位,因此模板周围有标记“h”。有没有办法摆脱这个小时标记,因为它会导致不断的混乱?尤其是在管理方面。

4

3 回答 3

4

您可以通过修改commonconfiguration.xml文件中以下行中的格式属性来配置剩余工作的显示方式:

<TypeField refname="Microsoft.VSTS.Scheduling.RemainingWork" type="RemainingWork" format="{0} h" />

默认情况下,此属性为“{0} h”,因此您只需将其设置为“{0}”即可满足您的需求。

您可以使用witadmin命令从服务器下载 commonconfiguration.xml 文件:

witadmin exportcommonprocessconfig /collection:http:<your collection> /p:<your project> /f:<the file name>

编辑文件后,您必须使用 witadmin 命令将其重新导入 TFS:

witadmin importcommonprocessconfig ...the same parameters as above

注意:对于 RC,您必须在占位符后留一个空格,例如"{0}",否则在导入文件时会出现验证错误。我还没有尝试使用 RTM 来查看这是否已修复。

于 2012-09-14T08:41:20.593 回答
0

As far as I can tell, all of those h's are hardcoded straight into web access. So the only way to remove them would be to find them (I used Chrome's dev tools), isolate them, and then go into the Web Access pages located on your TFS Server (application tier) and manually remove them. This is because they aren't actually part of any template, so there isn't a way to remove them all at once. The path to the files will be something like

c:\Program Files\Microsoft Team Foundation Server 11.0\Application Tier\Web Services

Good luck, I've had a heck of a time trying to alter them.

于 2012-09-12T19:46:53.960 回答
0

您可以使用TFPTWITADMIN命令行工具删除剩余工作量字段。

但是我建议不要删除它,而是从表单本身中删除它(这样它就不会显示),并添加一个规则,使其默认为1并且是只读的。此外,在工作流中,添加一个规则,当您达到done时将值更改为 0 。

由于数字本身没有实际意义,因此单位可以是实际小​​时数、理想小时数、故事点或您希望它们表示的任何内容。通过将每个任务设为 1 或 0(完成后),您可以利用 TFS 的内置工具(例如燃尽报告)来跟踪您的进度。完成的每项任务都会减少剩余的工作,并且您将能够通过总结每次迭代中完成的工作量来跟踪速度(这与计数相同)。

于 2012-09-13T07:35:54.693 回答