
## Task class

Represents a task in a project.

The Task type exposes the following members:
## Properties
| Name | Description |
| :- | :- |
|uid|Gets or sets a value of Uid.|
|id|Gets or sets a value of Id.|
|type|Gets or sets a value of Type.|
|is_null|Gets or sets a value indicating whether IsNull is set or not.|
|created|Gets or sets a value of Created.|
|contact|Gets or sets a value of Contact.|
|wbs|Gets or sets a value of WBS.|
|wbs_level|Gets or sets a value of WBSLevel.|
|outline_number|Gets or sets a value of OutlineNumber.|
|name|Gets or sets a value of Name.|
|outline_level|Gets or sets a value of OutlineLevel.|
|priority|Gets or sets a value of Priority.|
|start|Gets or sets a value of Start.|
|finish|Gets or sets a value of Finish.|
|duration|Gets or sets a value of Duration.|
|duration_variance|Gets or sets a value of DurationVariance.|
|duration_format|Gets or sets a value of DurationFormat.|
|work|Gets or sets a value of Work.|
|stop|Gets or sets a value of Stop.|
|resume|Gets or sets a value of Resume.|
|is_resume_valid|Gets or sets a value indicating whether IsResumeValid is set or not.|
|is_effort_driven|Gets or sets a value indicating whether IsEffortDriven is set or not.|
|is_recurring|Gets or sets a value indicating whether IsRecurring is set or not.|
|is_summary|Gets or sets a value indicating whether IsSummary is set or not.|
|is_overallocated|Gets or sets a value indicating whether IsOverallocated is set or not.|
|is_estimated|Gets or sets a value indicating whether IsEstimated is set or not.|
|is_milestone|Gets or sets a value indicating whether IsMilestone is set or not.|
|is_critical|Gets or sets a value indicating whether IsCritical is set or not.|
|is_subproject|Gets or sets a value indicating whether IsSubproject is set or not.|
|is_subproject_read_only|Gets or sets a value indicating whether IsSubprojectReadOnly is set or not.|
|is_marked|Gets or sets a value indicating whether IsMarked is set or not.|
|ignore_warnings|Gets or sets a value indicating whether IgnoreWarnings is set or not.|
|is_external_task|Gets or sets a value indicating whether IsExternalTask is set or not.|
|subproject_name|Gets or sets a value of SubprojectName.|
|external_task_project|Gets or sets a value of ExternalTaskProject.|
|external_id|Gets or sets a value of ExternalId.|
|external_uid|Gets or set the external task's Unique identifier when the task is external.|
|early_start|Gets or sets a value of EarlyStart.|
|early_finish|Gets or sets a value of EarlyFinish.|
|late_start|Gets or sets a value of LateStart.|
|late_finish|Gets or sets a value of LateFinish.|
|start_variance|Gets or sets a value of StartVariance.|
|finish_variance|Gets or sets a value of FinishVariance.|
|work_variance|Gets or sets a value of WorkVariance.|
|cost_variance|Gets or sets a value of CostVariance.|
|start_slack|Gets or sets a value of StartSlack.|
|finish_slack|Gets or sets a value of FinishSlack.|
|free_slack|Gets or sets a value of FreeSlack.|
|total_slack|Gets or sets a value of TotalSlack.|
|fixed_cost|Gets or sets a value of FixedCost.|
|fixed_cost_accrual|Gets or sets a value of FixedCostAccrual.|
|percent_complete|Gets or sets a value of PercentComplete.|
|percent_work_complete|Gets or sets a value of PercentWorkComplete.|
|cost|Gets or sets a value of Cost.|
|overtime_cost|Gets or sets a value of OvertimeCost.|
|actual_start|Gets or sets a value of ActualStart.|
|actual_finish|Gets or sets a value of ActualFinish.|
|actual_duration|Gets or sets a value of ActualDuration.|
|actual_cost|Gets or sets a value of ActualCost.|
|actual_overtime_cost|Gets or sets a value of ActualOvertimeCost.|
|actual_work|Gets or sets a value of ActualWork.|
|actual_overtime_work|Gets or sets a value of ActualOvertimeWork.|
|regular_work|Gets or sets a value of RegularWork.|
|overtime_work|Gets or sets a value of OvertimeWork.|
|remaining_duration|Gets or sets a value of RemainingDuration.|
|remaining_cost|Gets or sets a value of RemainingCost.|
|remaining_work|Gets or sets a value of RemainingWork.|
|remaining_overtime_work|Gets or sets a value of RemainingOvertimeWork.|
|remaining_overtime_cost|Gets or sets a value of RemainingOvertimeCost.|
|acwp|Gets or sets a value of ACWP.|
|cv|Gets or sets a value of CV.|
|constraint_type|Gets or sets a value of ConstraintType.|
|calendar|Gets or sets a value of Calendar.|
|constraint_date|Gets or sets a value of ConstraintDate.|
|deadline|Gets or sets a value of Deadline.|
|level_assignments|Gets or sets a value indicating whether LevelAssignments is set or not.|
|leveling_can_split|Gets or sets a value indicating whether LevelingCanSplit is set or not.|
|leveling_delay|Gets or sets a value of LevelingDelay.|
|preleveled_start|Gets or sets a value of PreleveledStart.|
|preleveled_finish|Gets or sets a value of PreleveledFinish.|
|hyperlink|Gets or sets the title or explanatory text for a hyperlink associated with a task.|
|hyperlink_address|Gets or sets the address for a hyperlink associated with a task.|
|hyperlink_sub_address|Gets or sets the specific location in a document in a hyperlink associated with a task.|
|ignore_resource_calendar|Gets or sets a value indicating whether IgnoreResourceCalendar is set or not.|
|hide_bar|Gets or sets a value indicating whether HideBar is set or not.|
|is_rollup|Gets or sets a value indicating whether IsRollup is set or not.|
|bcws|Gets or sets a value of BCWS.|
|bcwp|Gets or sets a value of BCWP.|
|physical_percent_complete|Gets or sets a value of PhysicalPercentComplete.|
|earned_value_method|Gets or sets a value of EarnedValueMethod.|
|actual_work_protected|Gets or sets a value of ActualWorkProtected.|
|actual_overtime_work_protected|Gets or sets a value of ActualOvertimeWorkProtected.|
|is_published|Gets or sets a value indicating whether IsPublished is set or not.|
|status|Gets task status.|
|status_manager|Gets or sets a value of StatusManager.|
|commitment_start|Gets or sets a value of CommitmentStart.|
|commitment_finish|Gets or sets a value of CommitmentFinish.|
|commitment_type|Gets or sets a value of CommitmentType.|
|is_manual|Gets or sets a value indicating whether IsManual is set or not.|
|is_expanded|Gets or sets a value indicating whether IsExpanded is set or not.|
|guid|Gets or sets a value of Guid.|
|notes_text|Gets or sets a value of NotesText.|
|notes_rtf|Gets or sets a value of NotesRTF.|
|manual_start|Gets or sets a value of ManualStart.|
|manual_finish|Gets or sets a value of ManualFinish.|
|manual_duration|Gets or sets a value of ManualDuration.|
|budget_work|Gets or sets a value of BudgetWork.|
|budget_cost|Gets or sets a value of BudgetCost.|
|display_as_summary|Gets or sets a value indicating whether DisplayAsSummary is set or not.|
|is_active|Gets or sets a value indicating whether IsActive is set or not.|
|start_text|Gets or sets a value of StartText.|
|duration_text|Gets or sets a value of DurationText.|
|finish_text|Gets or sets a value of FinishText.|
|display_on_timeline|Gets or sets a value indicating whether DisplayOnTimeline is set or not.|
|warning|Gets or sets a value indicating whether Warning is set or not.|
|activity_id|Represents activity id field - a task's unique identifier used by Primavera. (only applicable to Primavera projects).|
|sv|The earned value schedule variance, through the project status date.<br/>            Schedule variance (SV) is the difference between the BCWP and the BCWS.|
|predecessors|Gets a [TaskCollection](/tasks/python-net/aspose.tasks/taskcollection/) object which contains all predecessors of this Task object.|
|successors|Gets a [TaskCollection](/tasks/python-net/aspose.tasks/taskcollection/) object which contains all successors of this Task object.|
|assignments|Gets a collection of resource assignments for this object.|
|parent_project|Gets the parent project of a task.|
|outline_codes|Gets or sets [OutlineCodeCollection](/tasks/python-net/aspose.tasks/outlinecodecollection/) object.|
|parent_task|Gets the parent task of a task.|
|children|Gets a child task collection of this object.<br/>            TaskCollection object which represents children tasks.|
|split_parts|Gets a SplitPart collection that represents the portions of a task.|
|extended_attributes|Gets ExtendedAttributeCollection object containing the values of an extended attribute.|
|timephased_data|Gets or sets a TimephasedDataCollection object of this task.<br/>            The time phased data block associated with a task.|
|baselines|Gets or sets the collection of baseline values of the task.|
|recurring_info|Gets the instance of [RecurringTaskInfo](/tasks/python-net/aspose.tasks/recurringtaskinfo/) class for the task which is a recurring task; if the task is not a recurring one then returns null;|
|primavera_properties|Gets an object containing Primavera-specific properties for a task read from Primavera file.|
## Methods
| Name | Description |
| :- | :- |
|get_timephased_data(start, end, timephased_type)|Returns [TimephasedDataCollection](/tasks/python-net/aspose.tasks/timephaseddatacollection/) object with [timephased_data](/tasks/python-net/aspose.tasks/task/) values within given start and end dates of specified time-phased data type.|
|get_timephased_data(start, end)|Returns [TimephasedDataCollection](/tasks/python-net/aspose.tasks/timephaseddatacollection/) object with [timephased_data](/tasks/python-net/aspose.tasks/task/) values within given start and end dates of specified time-phased data type.|
|move_to_sibling(before_task)|Moves the current task at the same Outline Level before the specified task.<br/>            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).<br/>            If ParentProject.CalculationMode is Manual the method will calculate only task id, outline level and outline numbers automatically.<br/>            If ParentProject.CalculationMode is Automatic the method reschedules all project's tasks automatically<br/>            (start/finish dates, sets early/late dates, calculates slacks, work and cost fields, recalculates  ids and outline levels).|
|move_to_sibling(before_task_id)|  |
|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

* namespace [aspose.tasks](/tasks/python-net/aspose.tasks/)
* assembly [Aspose.Tasks](/tasks/python-net/)

