TaskCollection

TaskCollection class

Represents a collection of Task objects.

The TaskCollection type exposes the following members:

Properties

NameDescription
parent_projectGets the parent project of the TaskCollection object.

Methods

NameDescription
add()Add the specified task to the instance of the TaskCollection class.
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, ids and 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).
add(task_name)Adds a new task to children tasks collection.
add(task_name, before_task_id)Adds a new recurring task to children tasks collection.
add(parameters)Inserts a new task before a task with the specified id and on the same outline level.
to_list()Converts the TaskCollection object to a list of Task objects.
get_by_uid(uid)Returns a task with the specified Uid whose ancestor is parent task of this collection .
get_by_id(id)Returns a task with the specified Id whose ancestor is parent task of this collection .

See Also