Task

Task class

Represents a task in a project.

The Task type exposes the following members:

Properties

NameDescription
uidGets or sets a value of Uid.
idGets or sets a value of Id.
typeGets or sets a value of Type.
is_nullGets or sets a value indicating whether IsNull is set or not.
createdGets or sets a value of Created.
contactGets or sets a value of Contact.
wbsGets or sets a value of WBS.
wbs_levelGets or sets a value of WBSLevel.
outline_numberGets or sets a value of OutlineNumber.
nameGets or sets a value of Name.
outline_levelGets or sets a value of OutlineLevel.
priorityGets or sets a value of Priority.
startGets or sets a value of Start.
finishGets or sets a value of Finish.
durationGets or sets a value of Duration.
duration_varianceGets or sets a value of DurationVariance.
duration_formatGets or sets a value of DurationFormat.
workGets or sets a value of Work.
stopGets or sets a value of Stop.
resumeGets or sets a value of Resume.
is_resume_validGets or sets a value indicating whether IsResumeValid is set or not.
is_effort_drivenGets or sets a value indicating whether IsEffortDriven is set or not.
is_recurringGets or sets a value indicating whether IsRecurring is set or not.
is_summaryGets or sets a value indicating whether IsSummary is set or not.
is_overallocatedGets or sets a value indicating whether IsOverallocated is set or not.
is_estimatedGets or sets a value indicating whether IsEstimated is set or not.
is_milestoneGets or sets a value indicating whether IsMilestone is set or not.
is_criticalGets or sets a value indicating whether IsCritical is set or not.
is_subprojectGets or sets a value indicating whether IsSubproject is set or not.
is_subproject_read_onlyGets or sets a value indicating whether IsSubprojectReadOnly is set or not.
is_markedGets or sets a value indicating whether IsMarked is set or not.
ignore_warningsGets or sets a value indicating whether IgnoreWarnings is set or not.
is_external_taskGets or sets a value indicating whether IsExternalTask is set or not.
subproject_nameGets or sets a value of SubprojectName.
external_task_projectGets or sets a value of ExternalTaskProject.
external_idGets or sets a value of ExternalId.
external_uidGets or set the external task’s Unique identifier when the task is external.
early_startGets or sets a value of EarlyStart.
early_finishGets or sets a value of EarlyFinish.
late_startGets or sets a value of LateStart.
late_finishGets or sets a value of LateFinish.
start_varianceGets or sets a value of StartVariance.
finish_varianceGets or sets a value of FinishVariance.
work_varianceGets or sets a value of WorkVariance.
cost_varianceGets or sets a value of CostVariance.
start_slackGets or sets a value of StartSlack.
finish_slackGets or sets a value of FinishSlack.
free_slackGets or sets a value of FreeSlack.
total_slackGets or sets a value of TotalSlack.
fixed_costGets or sets a value of FixedCost.
fixed_cost_accrualGets or sets a value of FixedCostAccrual.
percent_completeGets or sets a value of PercentComplete.
percent_work_completeGets or sets a value of PercentWorkComplete.
costGets or sets a value of Cost.
overtime_costGets or sets a value of OvertimeCost.
actual_startGets or sets a value of ActualStart.
actual_finishGets or sets a value of ActualFinish.
actual_durationGets or sets a value of ActualDuration.
actual_costGets or sets a value of ActualCost.
actual_overtime_costGets or sets a value of ActualOvertimeCost.
actual_workGets or sets a value of ActualWork.
actual_overtime_workGets or sets a value of ActualOvertimeWork.
regular_workGets or sets a value of RegularWork.
overtime_workGets or sets a value of OvertimeWork.
remaining_durationGets or sets a value of RemainingDuration.
remaining_costGets or sets a value of RemainingCost.
remaining_workGets or sets a value of RemainingWork.
remaining_overtime_workGets or sets a value of RemainingOvertimeWork.
remaining_overtime_costGets or sets a value of RemainingOvertimeCost.
acwpGets or sets a value of ACWP.
cvGets or sets a value of CV.
constraint_typeGets or sets a value of ConstraintType.
calendarGets or sets a value of Calendar.
constraint_dateGets or sets a value of ConstraintDate.
deadlineGets or sets a value of Deadline.
level_assignmentsGets or sets a value indicating whether LevelAssignments is set or not.
leveling_can_splitGets or sets a value indicating whether LevelingCanSplit is set or not.
leveling_delayGets or sets a value of LevelingDelay.
preleveled_startGets or sets a value of PreleveledStart.
preleveled_finishGets or sets a value of PreleveledFinish.
hyperlinkGets or sets the title or explanatory text for a hyperlink associated with a task.
hyperlink_addressGets or sets the address for a hyperlink associated with a task.
hyperlink_sub_addressGets or sets the specific location in a document in a hyperlink associated with a task.
ignore_resource_calendarGets or sets a value indicating whether IgnoreResourceCalendar is set or not.
hide_barGets or sets a value indicating whether HideBar is set or not.
is_rollupGets or sets a value indicating whether IsRollup is set or not.
bcwsGets or sets a value of BCWS.
bcwpGets or sets a value of BCWP.
physical_percent_completeGets or sets a value of PhysicalPercentComplete.
earned_value_methodGets or sets a value of EarnedValueMethod.
actual_work_protectedGets or sets a value of ActualWorkProtected.
actual_overtime_work_protectedGets or sets a value of ActualOvertimeWorkProtected.
is_publishedGets or sets a value indicating whether IsPublished is set or not.
statusGets task status.
status_managerGets or sets a value of StatusManager.
commitment_startGets or sets a value of CommitmentStart.
commitment_finishGets or sets a value of CommitmentFinish.
commitment_typeGets or sets a value of CommitmentType.
is_manualGets or sets a value indicating whether IsManual is set or not.
is_expandedGets or sets a value indicating whether IsExpanded is set or not.
guidGets or sets a value of Guid.
notes_textGets or sets a value of NotesText.
notes_rtfGets or sets a value of NotesRTF.
manual_startGets or sets a value of ManualStart.
manual_finishGets or sets a value of ManualFinish.
manual_durationGets or sets a value of ManualDuration.
budget_workGets or sets a value of BudgetWork.
budget_costGets or sets a value of BudgetCost.
display_as_summaryGets or sets a value indicating whether DisplayAsSummary is set or not.
is_activeGets or sets a value indicating whether IsActive is set or not.
start_textGets or sets a value of StartText.
duration_textGets or sets a value of DurationText.
finish_textGets or sets a value of FinishText.
display_on_timelineGets or sets a value indicating whether DisplayOnTimeline is set or not.
warningGets or sets a value indicating whether Warning is set or not.
activity_idRepresents activity id field - a task’s unique identifier used by Primavera. (only applicable to Primavera projects).
svThe earned value schedule variance, through the project status date.
Schedule variance (SV) is the difference between the BCWP and the BCWS.
predecessorsGets a
successorsGets a
assignmentsGets a collection of resource assignments for this object.
parent_projectGets the parent project of a task.
outline_codesGets or sets
parent_taskGets the parent task of a task.
childrenGets a child task collection of this object.
TaskCollection object which represents children tasks.
split_partsGets a SplitPart collection that represents the portions of a task.
extended_attributesGets ExtendedAttributeCollection object containing the values of an extended attribute.
timephased_dataGets or sets a TimephasedDataCollection object of this task.
The time phased data block associated with a task.
baselinesGets or sets the collection of baseline values of the task.
recurring_infoGets the instance of
primavera_propertiesGets an object containing Primavera-specific properties for a task read from Primavera file.

Methods

NameDescription
get_timephased_data(start, end, timephased_type)Returns
get_timephased_data(start, end)Returns
move_to_sibling(before_task)Moves the current task at the same Outline Level before the specified task.
If ParentProject.CalculationMode is None user should invoke Project.Recalculate() after using this method (It will reschedule all project tasks (start/finish dates, sets early/late dates) and calculate the dependent fields such as slacks, work and cost fields, outline levels).
If ParentProject.CalculationMode is Manual the method will calculate only task id, outline level and outline numbers automatically.
If ParentProject.CalculationMode is Automatic the method reschedules all project’s tasks automatically
(start/finish dates, sets early/late dates, calculates slacks, work and cost fields, recalculates ids and outline levels).
move_to_sibling(before_task_id)Moves the current task at the same Outline Level before a task with the specified Id.
If ParentProject.CalculationMode is None user should invoke Project.Recalculate() after using this method (It will reschedule all project tasks (start/finish dates, sets early/late dates) and calculate the dependent fields such as slacks, work and cost fields, outline levels).
If ParentProject.CalculationMode is Manual the method will calculate only task id, outline level and outline numbers automatically.
If ParentProject.CalculationMode is Automatic the method reschedules all project’s tasks automatically
(start/finish dates, sets early/late dates, calculates slacks, work and cost fields, recalculates ids and outline levels).
select_all_child_tasks()Recursively collects all child tasks of this task.
clone()Creates full copy of a task without subtasks.
equals(other)Returns a value indicating whether this instance is equal to a specified task.
delete()Deletes a task from parent project tasks collection and all its assignments.
outline_indent()Indents a task in the outline.
outline_outdent()Promotes a task in the outline.

See Also