We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Which fields are changed for setting percentage of a task

Hi,


Can you provide list of changes which occur when percentange of a Task is set? I need to know all the fields which are affected by calling this function.

Hi George,

Thank you for posting your inquiry.

We created a new project with a single task and resource, where the task duration was set to 30 days. The resource was assigned to this task. The Tsk.PercentComplete was then set to 50% and below changes were observed in Tsk and Asn fields:

Tsk Fields

  • ActualDuration - The duration of task was set to 30 days, therefore changing the PercentComplete to 50% changes it to 15 days.
  • ActualStart - This was initially set to DateTime.MinValue. Changing Tsk.PercentCompletes changes this field to Tsk.Start.
  • ActualWork - This is calculated according to Tsk.Work field, which was initially set to 240 hours after assigning a single resource. If Tsk.PercentComplete is set to 50%, the value for this field changes to 50% of Work value i.e. 120 hours.
  • PercentWorkComplete - This fields is also set to 50% as per the percentage of work completed for the task.
  • RemainingDuration - This field is calculated by subtracting Tsk.ActualDuration from Tsk.Duration. In current scenario, this was set to 15 days (30 - 15).
  • RemainingWork - This field is calculated by subtracting Tsk.ActualWork from Tsk.Work. In current scenario, this was set to 120 hours (240 - 120).
  • Resume - This field is also changed based on any changes in Tsk.PercentComplete and typically follows the Stop date.
  • Stop - Stop date is calculated based on the actual and remaining portions of a task when percent complete is changed.

Asn Fields
  • ActualStart - Changes to Tsk.Start when Tsk.PercentComplete is changed.
  • ActualWork - Calculated in relation to Asn.Work field. In current scenario, Asn.Work was equal to 240 hours. So this field was set to 50% of Asn.Work i.e. 120 hours.
  • PercentWorkComplete - Changed to 50% as per the percentage of work completed for the assignment.
  • RemainingWork - Calculated in accordance to values of Asn.Work and Asn.ActualWork.
  • Resume - This field is also changed based on any changes in Tsk.PercentComplete and typically follows the Stop date.
  • Stop - Stop date is calculated based on the actual and remaining portions of an assignment when percent complete is changed.

Please let us know if you need any further information in this regard.