Docs

Add Task

POST /tasks

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

FieldTypeRequiredDescription
namestringOptional
statusIduuidOptional
startDateTimedate-timeOptional
endDateTimedate-timeOptional
descriptionstringOptional
prioritystringOptional
parentIduuidOptional
phaseIduuidOptional
assigneesAddTaskRequestAssigneeListOptional
reviewerPullsBaseServiceCrewPull[]Optional
reviewRouteAddTaskRequestReviewRouteBodyOptional
clearReviewRoutebooleanOptional
attributesAddTaskRequestAttribute[]Optional
dependsOnuuid[]Optional

AddTaskRequestAssigneeList

FieldTypeDescription
crewIdsuuid[]| null
collaboratorIdsuuid[]| null
departmentIdsuuid[]| null
pullsBaseServiceCrewPull[]| null
eventRoleIdsuuid[]| null

BaseServiceCrewPull

FieldTypeDescription
orgCrewIduuid
placementCollaboratorIduuid| null

AddTaskRequestReviewRouteBody

FieldTypeDescription
stagesAddTaskRequestStage[]| null

AddTaskRequestAttribute

FieldTypeDescription
attributeIduuid
valueJsonElement| null

AddTaskRequestStage

FieldTypeDescription
iduuid| null
namestring| null
kindstring| null
groupsAddTaskRequestGroup[]| null

AddTaskRequestGroup

FieldTypeDescription
logicstring| null
thresholdinteger| null
membersAddTaskRequestMember[]| null