Tasks
Build task trees with dependencies, track progress and time, and see tasks on a Gantt view.
A Task is a piece of work, named TASK-<year>-00001. Tasks form a tree through Parent Task, and each change rolls up into the task's Project.
Fields that matter
| Field | What it does |
|---|---|
| Project | The project it rolls up into. A child task without one takes its parent's |
| Status | Open, Working, Pending Review, Overdue, Template, Completed, Cancelled |
| Is Group, Parent Task | Build the tree. Only a group can be a parent |
| Expected Start Date, Expected End Date | Datetimes. The Gantt view draws them |
| % Progress, Weight | Feed the project's Task Progress and Task Weight methods |
| Type | A Task Type. Its Weight is a new task's default weight |
| Dependent Tasks | Tasks that must finish first |
| Is Template, Begin On (Days), Duration (Days) | Make it a template task for a Project Template |
| Is Milestone | Marks a milestone |
Actual Start Date, Actual End Date, Actual Time and the costing and billing totals come from submitted Timesheets.
Rules ERP enforces
| Case | Message |
|---|---|
| Parent is not a group | Parent Task X must be a Group Task |
| Parent is in another project | Parent Task X is not in Project Y. Pick a group task of the same project. |
| Progress over 100 | Progress % for a task must be between 0 and 100. |
| End before start | Expected End Date must be after Expected Start Date |
| Completing before a dependency | Cannot complete task X as its dependant task Y are not completed / cancelled. |
| A dependency loop | Circular Reference Error |
| Deleting a group with children | Child Task exists for this Task. You can not delete this Task. |
| Open task under a completed parent | Cannot add an open task under completed Parent Task X. |
| Completed On in the future | Completed On cannot be greater than Today |
When you add a child to a group, the group's Dependent Tasks gain the child. When a task ends later than planned, ERP moves the tasks that depend on it to start after it.
Example
Create a task "Group" in project "Tree" with Is Group ticked.
Create a task "Child" with Parent Task "Group" and no project. It takes project "Tree", and "Group" now depends on "Child".
Create "Blocked" depending on a task "Leaf". Setting "Blocked" to Completed is refused until "Leaf" is Completed or Cancelled.
Overdue tasks
Erp.Workers.TaskOverdueWorker runs daily. Open tasks past their Expected End Date become Overdue, and their projects' completion is rolled up again.
Gantt view
Task's Expected Start and End are Gantt fields, so the Task list has a Gantt view. The Project form's Gantt Chart button opens it filtered to that project.
Create menu
A Task's Create menu makes a Timesheet for it (erp.task.make_timesheet).