-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Feature: SubTask
User Story:
As a user, I want to create a subtask relationship so that I can enforce the completion sequence of open tasks.
Acceptance Criteria:
AC1
Given that a user is logged in and has an existing task that requires a subtask to be completed,
When they create the child task, they can pass in an optional property that will allow them to relate it to another, a parent task, which must have been previously created
Then the task that was just created will have a related parent task; the parent task can no longer be marked as completed until the child is closed.
AC2
Given the user has a task created, but wants to relate it to another task
When they edit a task, they can pass in a parent ID
Then this will set the relationship between 2 tasks.
AC3
Given the user is ready to complete a task,
When the task contains a child task
Then the user will be denied closer until all dependencies are closed first
.
Technical Details:
Requires an update the create task endpoint and its respective dto to allow the assigning of a parent id.
Requires an Update to the edit task to allow the assigning of a parent ID.
Requires an update to the 'Status-Change-To--Complete' endpoint to check if any and all child task are complete only and only if all child task in the tree/graph are complete, are you able to set the task in question as complete.
Graph traversal required.
https://en.wikipedia.org/wiki/Tree_traversal
Effort point: 5
Metadata
Metadata
Assignees
Labels
Projects
Status