feat: Rework task management in PlanBundle

- Introduced migration Version_0_13_0 to update task schema:
  - Changed start_date and end_date to DATE type, truncating time.
  - Added new columns: task_kind, definition_of_done, planned_work.
  - Removed parent_id and its index, replacing with a dependency graph.
  - Created new tables: plan_task_dependencies and plan_task_raci, including a join table for stakeholders.

- Updated Version_0_4_0 migration to remove references to parent_id.

- Refactored TaskModel to return tasks as flat rows with dependencies and RACI assignments.

- Modified task table view to display tasks without hierarchical structure, adding badges for milestones and phases.

- Enhanced task form to include dependencies and RACI roles, with appropriate macros for rendering.

- Updated task list view to reflect new task structure and display status based on task kind.

- Added new validation constraints for task dependencies and dates, ensuring no cycles or self-references.

- Removed obsolete ValidTaskParent validation as parent-child relationships are no longer supported.

- Updated translations to reflect changes in task management and new fields.

- Revised documentation to describe new task handling and features.
This commit is contained in:
Alexandre Gain committed 2026-11-13 21:58:45 +01:00
1 parent 8696acd01c
commit 8268fad886
33 files changed
+1454 -251

No files matched your search

+10 -3
View File
@@ -117,9 +117,16 @@
{% set description = item.description|default('')|striptags|trim %}
{{ (description|length > 120 ? description|slice(0, 120) ~ '…' : description)|plan_linkify }}
</td>
<td>{{ item.startDate ? dateToFull(item.startDate) : '' }}</td>
<td>{{ item.endDate ? dateToFull(item.endDate) : '' }}</td>
<td><span class="label {{ item.status.labelClass }}">{{ item.status.labelKey|trans }}</span></td>
<td>{{ item.startDate ? item.startDate|date('Y-m-d') : '' }}</td>
<td>{{ item.endDate ? item.endDate|date('Y-m-d') : '' }}</td>
<td>
{# A phase has no status of its own: its state comes from its tasks. #}
{% if item.taskKind != constant('MauticPlugin\\PlanBundle\\Entity\\TaskKind::Phase') %}
<span class="label {{ item.status.labelClass }}">{{ item.status.labelKey|trans }}</span>
{% else %}
<span class="label label-primary">{{ 'mautic.plan.task.kind.phase_short'|trans }}</span>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>