Rolling up efforts

The actual effort (in hrs) should be rolled up from its child and it should be non-editable textbox after it was committed.

For example:

I have one Feature work item with some 2 tasks linked to the same. Let’s say:

Tasks Name

Actual Effort (in hrs)

Task 1

5

Task 2

4

So the total effort (in hrs) for the particular Feature should be 5 + 4 = 9 hrs. The same should be automatically calculated for the particular feature.


Answer this question

Rolling up efforts

  • Hashim Ahmed

    Thanks for your reply.

    I not talking about MPP....but when user interacting with VS IDE then the rolling up of effort should happen....i thought of using SAVE event after entering all the details like planned effort and actual effort for the task and if it is closed then accordingly the Workitem linked with the task should calculate accordingly....

    Feature ---- 8 hrs - CLOSED

    ----Task 1 - 5 hrs - CLOSED

    -----Task 2 - 3 hrs - CLOSED


  • tody4

    As Karthik alluded to in an earlier posting, this is not something that is inherently supported in V1. You could have an add-in as suggested that could hook the Saved event, and based on the contents of the event, you could update a linked work item. However, what if there are multiple linked work items In V1 all that is supported are related links - there is no notion of linking hierarchies using parent-child links, where sub-tasks roll-up to one parent. This is functionality (along with rollup) that we may be considering for future versions of TFS.

    In the meantime you may be able to extend your link types to provide a richer experience. Some guidance is avaialble in Naren's blog on the subject: http://blogs.msdn.com/narend/archive/2006/10/13/how-to-extend-linking-and-workitem-ui-with-custom-link-types.aspx, which also contains some sample code.

    Hope this helps a little,



  • R.Tutus

    Hey there,

    I am assuming you are talking about MS Project integration here We rely on MS Project to roll up scheduling information to all the tasks in the project worksheet. Are you not seeing this working for you TFS does not duplicate logic for this roll-up calculation. So if you have only the child tasks in the worksheet (as it seems from your example), the parent is not going to get updated.

    If you were not talking about MS Project here, my apologies. Please do let me know.

    Thanks



  • Rolling up efforts