DCSIMG
How To: Change Estimate/Remaining/Complete Fields Format To Days Instead Of Hours - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

How To: Change Estimate/Remaining/Complete Fields Format To Days Instead Of Hours

How To: Change Estimate/Remaining/Complete Field Format To Days Instead Of Hours

I receive the following question:
How do I change the format for reporting a work: estimate/ remaining/complete - to days instead of hours???

1

2

Here is my answer for that question:

To download a mapping file
  1. Open a Command Prompt window.

  2. Open the folder where Visual Studio is installed (for example, drive:\Program Files\Microsoft Visual Studio 9),
    and in that folder, locate \Common 9.0\IDE.
    The TFSFieldMapping.exe utility program is in this folder.

  3. Download the mapping file by using the TFSFieldMapping.exe utility by typing the following at the command prompt:

    TFSFieldMapping download http://TFSServerName:8080 TeamProjectName MappingFile.xml

Now open MappingFile.xml and look for CompletedWork, RemainingWork, BaselineWork.

Change the ProjectUnits to pjDay instead of pjHour.

Like This:

<Mapping WorkItemTrackingFieldReferenceName="Microsoft.VSTS.Scheduling.CompletedWork"

ProjectField="pjTaskActualWork" ProjectUnits="pjDay" />

 

<Mapping WorkItemTrackingFieldReferenceName="Microsoft.VSTS.Scheduling.RemainingWork"

ProjectField="pjTaskRemainingWork" ProjectUnits="pjDay" />

 

<Mapping WorkItemTrackingFieldReferenceName="Microsoft.VSTS.Scheduling.BaselineWork"

ProjectField="pjTaskBaselineWork" ProjectUnits="pjDay" />

 

Save MappingFile.xml.
 
To Upload the mapping file back to TFS
 
TFSFieldMapping upload http://TFSServerName:8080 TeamProjectName MappingFile.xml
 

Now you give your estimation in Days and Not in Hours.

But you can see that the value from Team System automatic translated into Hours in MsProject,

3
4
 

Change The Days to Hours Calculation

Click on Tools -> Options
5
 
Goto "Schedule" Tab and change "Work is entered in:" to Days
 
 6
 
Here is the new View
 
7
 
Enjoy.

Comments

Team System News said:

Patrice Calve on Migrating VSS 2005 to TFS 2008 Ayman Badawi on TFS 2008 Web Services List Brian Harry...

# November 18, 2008 9:25 AM

Yifat said:

It's works great!!!

Thx a lot's

Yifat

# November 18, 2008 10:45 AM

neongreen said:

Well thx a lot for posting this solution of that problem...i was faced with this same problem of <a href="http://www.notionsolutions.com">Changing</a> Complete Field Format To Days Instead Of Hours..and have spent a lot of time on it without a real solution....so thx a lot for saving me the trouble of having to spend many more hours on what now seems to be a pretty easy thing to do! :)

# November 21, 2008 4:08 AM

neongreen said:

Well thx a lot for posting this solution of that problem...i was faced with this same problem of Complete Field Format To Days Instead Of Hours..and have spent a lot of time on it without a real solution....so thx a lot for saving me the trouble of having to spend many more hours on what now seems to be a pretty easy thing to do! :)

# November 21, 2008 5:06 AM

Shai Raiten said:

Glad I can help!

If you have any more problem you are welcome to ask me.

# November 21, 2008 6:31 AM

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# November 28, 2008 3:31 PM

Shai Raiten said:

Unhook The Link Between Microsoft Project and TFS Some times you need to bind the project file with another

# March 9, 2009 10:13 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: