Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to set the “Plan Work” (EstimatedHours) for a Task

2 views
Skip to first unread message

jason...@gmail.com

unread,
Jul 11, 2010, 2:58:04 PM7/11/10
to
The property EstimatedHours is readonly, and I can't figure out any
way to set the value from the SDK, though through the UI you can set
the "Plan, Work" field for a new Task.

I'm using the .NET sdk, but an answer for the Java sdk could also be
helpful.

Setting the EstimatedStart/Finish doesn't work:

var task = new Borland.StarTeam.Task(cr.ParentFolder);
task.Name = "Name";
task.Notes = "Notes";
// task.EstimatedHours = 4.0; // readonly property
task.EstimatedStart = DateTime.Now;
task.EstimatedFinish = DateTime.Now.AddHours(4);

task.Update();

0 new messages