Reputation: 5156
Long story short, someone changed something in our TFS a few years ago and now I am trying to undo what they did. I have spent the last week or so combing the internet and digging through the TFS XML files trying to figure out how they did this.
This is what I need (Work Details in hours)
and not like this (Work Details in points)
Upvotes: 1
Views: 197
Reputation: 63
Look at WorkItem Tracking\Process\ProcessConfiguration.xml file
Use this command to export the common ProcessConfiguration
witadmin.exe exportcommonprocessconfig /collection:http://SERVERNAME:8080/tfs/DefaultCollection
/p:PROJECTNAME /f:.\processconfig.xml
Change Points to h in this line
<TypeField refname="Microsoft.VSTS.Scheduling.RemainingWork" type="RemainingWork" format="{0} points" />
And use this command to import the common ProcessConfiguration
witadmin.exe importcommonprocessconfig /collection:http://SERVERNAME:8080/tfs/DefaultCollection
/p:PROJECTNAME /f:.\processconfig.xml
Upvotes: 1
Reputation: 114927
You need to do the reverse operation described here. Basically exporting the process configuration and changing the Unit specified in the formatting of the remaining work field.
Change:
<TypeField refname="Microsoft.VSTS.Scheduling.RemainingWork"
type="RemainingWork" format="{0} sp" />
back to:
<TypeField refname="Microsoft.VSTS.Scheduling.RemainingWork"
type="RemainingWork" format="{0} h" />
To change it export the Process Configuration:
witadmin.exe exportprocessconfig /collection:http://SERVERNAME:8080/tfs/DefaultCollection
/p:PROJECTNAME /f:.\ProcessConfiguration.xml
apply the above change and import it again:
witadmin.exe importprocessconfig /collection:http://SERVERNAME:8080/tfs/DefaultCollection
/p:PROJECTNAME /f:.\ProcessConfiguration.xml
Upvotes: 1