Table of contents
API
TOC
Collapse the table of content
Expand the table of content

Task class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObject

Contains methods and properties that can be used to access the details of the task.

Syntax

CSOM

class Task 

JSOM

PS.Task

REST Interface

Supported.

PS.Task

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('projectid')/Tasks('taskid')

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
ActualCostWorkPerformedDoubleDecimal value
ActualDurationStringGets the span of active working time that is required to complete a task.
ActualDurationMillisecondsIntegerGets the time interval, expressed in milliseconds, for the span of active working time that is required to complete a task.
ActualDurationTimeSpanTimeSpanGets the total time interval for the span of active working time that is required to complete a task.
ActualOvertimeCostDoubleGets the costs incurred for overtime work already performed on the task by assigned resources.
ActualOvertimeWorkStringGets the actual amount of overtime work that has already been performed by resources assigned to the task.
ActualOvertimeWorkMillisecondsIntegerGets the time interval, expressed in milliseconds, for the actual amount of overtime work already performed by resources assigned to the task.
ActualOvertimeWorkTimeSpanTimeSpan
BaselineCostDoubleGets the total planned cost for the task.
BaselineDurationStringGets the original span of time that is planned to complete the task, established at the time of the project baseline.
BaselineDurationMillisecondsInteger
BaselineDurationTimeSpanTimeSpanGets the total time interval for the original span of time that is planned to complete the task, established at the time of the project baseline.
BaselineFinishDateTimeGets the planned task completion date that was set at the time that the baseline was saved.
BaselineStartDateTimeGets the planned task start date that was set at the time that the baseline was saved.
BaselineWorkStringGets the total planned person-hours that are scheduled for a task, as established at the time of the project baseline.
BaselineWorkMillisecondsIntegerDecimal value
BaselineWorkTimeSpanTimeSpanGets the total time interval for the total planned person-hours that are scheduled for the task, as established at the time of the project baseline.
BudgetCostDoubleGets the budget costs for budget cost resources.
BudgetedCostWorkPerformedDoubleGets the budgeted cost of work that has been performed (BCWP) on the task to date.
BudgetedCostWorkScheduledDoubleGets the budgeted cost of work that is scheduled (BCWS) for the task.
ContactStringGets the name of the individual who is responsible for a task.
CostPerformanceIndexDoubleGets the ratio of the baseline costs of work that has been performed on the task to the actual costs of work that has been performed, calculated up to the project status date or today's date.
CostVarianceDoubleGets the difference between the baseline cost and the total cost for the task.
CostVarianceAtCompletionDoubleGets the difference between the baseline cost and the total cost at the completion of the task.
CostVariancePercentageIntegerGets the ratio of cost variance (CV) to the budgeted cost of work that has been performed on the task (BCWP), expressed as a percentage.
CreatedDateTimeGets the date and the time when the task was added to the project.
CurrentCostVarianceDoubleGets the difference between the baseline cost and the actual cost of the task to date.
CustomFieldsCustomFieldCollectionGets the collection of custom fields for the task.
DurationVarianceStringGets the difference between the baseline duration of the task and the total duration, or current estimated duration, of the task.
DurationVarianceMillisecondsIntegerGets the time interval, expressed in milliseconds, of the difference between the baseline duration of the task and the total duration, or current estimated duration, of the task.
DurationVarianceTimeSpanTimeSpanGets the total time interval for the difference between the baseline duration of the task and the total duration, or current estimated duration, of the task.
EarliestFinishDateTimeGets the earliest date that the task could possibly finish, based on the early finish dates of predecessor and successor tasks, other constraints, and any leveling delay.
EarliestStartDateTimeGets the earliest date that the task could possibly begin, based on the early start dates of predecessor and successor tasks and other constraints.
EstimateAtCompletionDoubleGets the estimate at completion (EAC) for the task.
FinishSlackStringGets the duration between the EarlyFinish date and theLateFinish date.
FinishSlackMillisecondsIntegerGets the time interval, expressed in milliseconds, of planned person-hours scheduled for an assignment, at the time of the project baseline.
FinishSlackTimeSpanTimeSpanGets the total time interval of planned person-hours scheduled for an assignment, at the time of the project baseline.
FinishVarianceStringGets the time that represents the difference between the baseline finish date of the task and the current finish date.
FinishVarianceMillisecondsIntegerGets the time interval, expressed in milliseconds, of the variance of the finish date of the task.
FinishVarianceTimeSpanTimeSpanGets the time interval for the variance of the finish date of the task.
FixedCostAccrualFixedCostAccrualGets the cost accrual method for how and when fixed costs are to be charged, or accrued, to the cost of the task.
FreeSlackStringGets the amount of time that the task can be delayed without delaying successor tasks.
FreeSlackMillisecondsIntegerGets the time interval, expressed in milliseconds, of the amount of time that the task can be delayed without delaying successor tasks.
FreeSlackTimeSpanTimeSpanGets the total time interval for the amount of time that the task can be delayed without delaying successor tasks.
IdGuidGets the GUID of the task.
IgnoreResourceCalendarBooleanGets a value that indicates whether the resource calendar is ignored when scheduling a task. True indicates the calendar is not used. False indicates that both the resource calendar and task calendar (if defined) are used when scheduling the task.
IsCriticalBooleanGets a value that indicates whether the timing for the task is critical or whether there can be any slack in the timing.
IsEffortDrivenBooleanGets a value that indicates whether the scheduling of the task is effort-driven.
IsExternalTaskBooleanGets a value that indicates whether this is a ghost task from another project created by Project Professional.
IsOverAllocatedBooleanGets a value that indicates whether the task is overallocated.
IsRecurringBooleanGets a value that indicates whether the task is part of a recurring series.
IsRecurringSummaryBooleanGets a value that indicates whether the task is the parent of a recurring series.
IsRolledUpBooleanGets a value that indicates whether information on the subtask Gantt bars is rolled up to the summary task bar.
IsSubProjectBooleanGets a value that indicates whether the task represents a subproject.
IsSubProjectReadOnlyBooleanGets a value that indicates whether a subproject for this task is read-only.
IsSubProjectScheduledFromFinishBooleanGets a value that indicates whether a subproject for this task is set to schedule from finish.
IsSummaryBooleanGets a value that indicates whether the task is a summary task.
LatestFinishDateTimeGets the latest date that the task can finish without delaying the finish of the project.
LatestStartDateTimeGets the latest date that the task can start without delaying the finish of the project.
LevelingDelayStringGets the amount of time that leveling can delay the task from its early start.
LevelingDelayMillisecondsIntegerDecimal value
LevelingDelayTimeSpanTimeSpanGets the time interval for the amount of time that leveling can delay the task from its early start.
ModifiedDateTimeGets the modified date.
NotesStringGets the notes about the task.
OutlinePositionStringGets the position of the task in the project outline hierarchy.
OvertimeCostDoubleGets the total overtime cost for the task.
OvertimeWorkStringGets the amount of overtime scheduled to be performed on the task.
OvertimeWorkMillisecondsIntegerGets the time interval, expressed in milliseconds, for the amount of overtime scheduled to be performed on the task.
OvertimeWorkTimeSpanTimeSpanGets the total time interval for the amount of overtime scheduled to be performed on the task.
PercentWorkCompleteIntegerGets the current status of the task, expressed as the percentage of work that has been completed.
PreLevelingFinishDateTimeGets the finish date of the task as it was before resource leveling was performed.
PreLevelingStartDateTimeGets the start date of the task as it was before resource leveling was performed.
RegularWorkStringGets the total amount of non-overtime work that is scheduled to be performed on the task.
RegularWorkMillisecondsIntegerGets the time interval, expressed in milliseconds, for the total amount of non-overtime work that is scheduled to be performed on the task.
RegularWorkTimeSpanTimeSpanGets the total time interval for the total amount of non-overtime work that is scheduled to be performed on the task.
RemainingCostDoubleGets the remaining scheduled expense that will be incurred during completion of the remaining scheduled work on the task.
RemainingOvertimeCostDoubleGets the remaining scheduled overtime expense for the task.
RemainingOvertimeWorkStringGets the amount of time, such as person-hours or days, that is required to complete the remaining overtime work for a task.
RemainingOvertimeWorkMillisecondsIntegerGets the time interval, expressed in milliseconds, for the amount of time, such as person-hours or days, that is required to complete the remaining overtime work for a task.
RemainingOvertimeWorkTimeSpanTimeSpanGets the total time interval for the amount of time, such as person-hours or days, that is required to complete the remaining overtime work for a task.
RemainingWorkStringGets the time, such as person-hours or days, that is required to complete the task or set of tasks.
RemainingWorkMillisecondsIntegerGets the time interval, expressed in milliseconds, for the time, such as person-hours or days, that is required to complete the task or set of tasks.
RemainingWorkTimeSpanTimeSpanGets the total time interval for the time, such as person-hours or days, that is required to complete the task or set of tasks.
ResumeDateTimeGets the date that the remaining part of the task is scheduled to resume after progress is entered.
ScheduleCostVarianceDoubleGets the difference in cost terms between the current progress and the baseline planned progress for a resource on the task.
ScheduledDurationStringGets the total span of active working time for the task as entered or as calculated based on the start date, the finish date, calendars, and other scheduling factors.
ScheduledDurationMillisecondsIntegerGets the time interval, expressed in milliseconds, for the total span of active working time for the task as entered or as calculated based on the start date, the finish date, calendars, and other scheduling factors.
ScheduledDurationTimeSpanTimeSpanGets the time interval for the total span of active working time for the task as entered or as calculated based on the start date, the finish date, calendars, and other scheduling factors.
ScheduledFinishDateTimeGets the date when work on the task is scheduled to be complete as it was calculated based on the start date, the duration, dependencies, calendars, and other scheduling factors.
ScheduledStartDateTimeGets the date when work on the task is scheduled to begin as it was calculated based on dependencies, constraints, calendars, and other scheduling factors.
SchedulePerformanceIndexDoubleGets the ratio of the budgeted cost of work performed to the budgeted cost of work scheduled.
ScheduleVariancePercentageIntegerGets the ratio of schedule variance (SV) to budgeted cost of work scheduled (BCWS), expressed as a percentage.
StartSlackStringGets the duration between the EarlyStart date and theLateStart date.
StartSlackMillisecondsIntegerGets the time interval, expressed in milliseconds, for the duration between the EarlyStart date and theLateStart date.
StartSlackTimeSpanTimeSpanGets the time interval for the duration between the EarlyStart date and theLateStart date.
StartVarianceStringGets the time that represents the difference between a baseline start date of the task and its currently scheduled start date.
StartVarianceMillisecondsIntegerGets the time interval, expressed in milliseconds, for the variance of the task start date.
StartVarianceTimeSpanTimeSpanGets the time interval for the variance of the task start date.
StopDateTimeGets the date that represents the end of the actual portion of the task.
SubProjectPublishedProjectGets a project that has been inserted into the master project.
ToCompletePerformanceIndexDoubleGets the To Complete Performance Index for the task.
TotalSlackStringGets the time that the task's finish date can be delayed without delaying the project's finish date.
TotalSlackMillisecondsIntegerGets the time interval, expressed in milliseconds, for the amount of time that the task finish date can be delayed without delaying the project's finish date.
TotalSlackTimeSpanTimeSpanGets the total time interval for the amount of time that the task finish date can be delayed without delaying the project's finish date.
WorkBreakdownStructureStringGets a code that identifies a location in a hierarchical structure that is used to organize tasks for reporting schedules and tracking costs.
WorkVarianceStringGets the difference between baseline work and currently scheduled work on a task, expressed as, for example, the number of person-hours or days.
WorkVarianceMillisecondsIntegerGets the time interval, expressed in milliseconds, for the difference between baseline work and currently scheduled work on the task.
WorkVarianceTimeSpanTimeSpanGets the total time interval for the difference between baseline work and currently scheduled work on the task.

See Also

DraftTask
ProjectSummaryTask
PublishedTask

© 2018 Microsoft