自定义 TFS Web 门户容量(工作详细信息)

Customizing TFS Web Portal Capacity (Work Details)

长话短说,有人在几年前更改了我们的 TFS 中的某些内容,现在我正试图撤消他们所做的。我花了大约一周的时间梳理互联网并挖掘 TFS XML 文件,试图弄清楚他们是如何做到这一点的。

这就是我需要的(以小时为单位的工作详细信息)

而不是这样(工作细节以分数表示)

看看 WorkItem Tracking\Process\ProcessConfiguration.xml file

使用此命令导出常用的ProcessConfiguration

witadmin.exe exportcommonprocessconfig /collection:http://SERVERNAME:8080/tfs/DefaultCollection 
         /p:PROJECTNAME  /f:.\processconfig.xml

将此行中的点更改为 h

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

并使用此命令导入常用的ProcessConfiguration

witadmin.exe importcommonprocessconfig /collection:http://SERVERNAME:8080/tfs/DefaultCollection 
         /p:PROJECTNAME  /f:.\processconfig.xml

You need to do the reverse operation described here。基本上导出流程配置并更改剩余工作字段格式中指定的单位。

变化:

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

回到:

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

要更改它导出进程配置:

witadmin.exe exportprocessconfig /collection:http://SERVERNAME:8080/tfs/DefaultCollection 
             /p:PROJECTNAME  /f:.\ProcessConfiguration.xml

应用上述更改并再次导入:

witadmin.exe importprocessconfig  /collection:http://SERVERNAME:8080/tfs/DefaultCollection 
                /p:PROJECTNAME  /f:.\ProcessConfiguration.xml