POST/tasks
Creates a task at the end of its sibling list, optionally under a parent task and in a phase, with
assignees, reviewers, attribute values and dependencies. Every required task attribute must be
supplied; ids come from ProjectManagement_GetStatuses, ProjectManagement_GetPhases,
ProjectManagement_GetTaskAttributes, ProjectManagement_GetTasks (parent and dependencies),
Crew_GetCrew and Events_GetCollaborators. Needs an event token, event basic access and Task.Manage at the
Event, or Task.Manage at one collaborator or department the task links and Task.Edit at every other one it
links; a subtask needs Task.Edit on its parent and at each link. The caller is recorded as the task's
creator. Returns 201 with the new task's { id }.
With an organization token and no event token it creates an organization-level task under the same rule at
the Organization and its departments: phaseId and collaboratorIds are refused, and department assignees
come from assignees.departmentIds. Event tasks refuse departmentIds.
assignees.eventRoleIds assigns event roles from Events_GetEventRoles; whoever fills the role is assigned and
follows the role when it changes. Reviewers are reviewRoute (the stages of ProjectManagement_UpdateTaskReviewRoute),
and reviewerPulls bring people onto the event into a simple route's one group; a task created In Review with a
route starts its review. An organization-level task's reviewRoute members are OrgCrew (organization crew records);
it refuses assignees.eventRoleIds and reviewerPulls.
Request Body
| Field | Type | Required | Description |
|---|
| name | string | Optional | |
| statusId | uuid | Optional | |
| startDateTime | date-time | Optional | |
| endDateTime | date-time | Optional | |
| description | string | Optional | |
| priority | string | Optional | |
| parentId | uuid | Optional | |
| phaseId | uuid | Optional | |
| assignees | AddTaskRequestAssigneeList | Optional | |
| reviewerPulls | BaseServiceCrewPull[] | Optional | |
| reviewRoute | AddTaskRequestReviewRouteBody | Optional | |
| clearReviewRoute | boolean | Optional | |
| attributes | AddTaskRequestAttribute[] | Optional | |
| dependsOn | uuid[] | Optional | |
AddTaskRequestAssigneeList
| Field | Type | Description |
|---|
| crewIds | uuid[]| null | |
| collaboratorIds | uuid[]| null | |
| departmentIds | uuid[]| null | |
| pulls | BaseServiceCrewPull[]| null | |
| eventRoleIds | uuid[]| null | |
BaseServiceCrewPull
| Field | Type | Description |
|---|
| orgCrewId | uuid | |
| placementCollaboratorId | uuid| null | |
AddTaskRequestReviewRouteBody
| Field | Type | Description |
|---|
| stages | AddTaskRequestStage[]| null | |
AddTaskRequestAttribute
| Field | Type | Description |
|---|
| attributeId | uuid | |
| value | JsonElement| null | |
AddTaskRequestStage
| Field | Type | Description |
|---|
| id | uuid| null | |
| name | string| null | |
| kind | string| null | |
| groups | AddTaskRequestGroup[]| null | |
AddTaskRequestGroup
| Field | Type | Description |
|---|
| logic | string| null | |
| threshold | integer| null | |
| members | AddTaskRequestMember[]| null | |