Creates a new task.

Can be a project task or a user’s private task. To create a task, the user needs to be the assignee of the task or ‘ProjectPlanning’ permissions in general or in the project the task is related to.

Required Permissions
Any authenticated user.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired>=0 characters<=1000 characters

The name of the task. Max allowed length: 1000 characters.

baseTypeenumRequired
The base type of the task. Can be 'private' for a private task or 'projecttask' for a project task.
Allowed values:
descriptionstring or nullOptional>=0 characters<=25000 characters

The description of the task. Max allowed length: 25000 characters.

isPrioboolean or nullOptional
Whether this task is marked as priority.
startOndatetime or nullOptional
The expected start date and time of the task.
dueOndatetime or nullOptional
The expected due date and time of the task.
laneOrderinteger or nullOptional
The lane order defines the vertical position in the task board.
plannedDurationinteger or nullOptional
The expected planned workload of the task, in seconds.
typeOfWorkIdUUID or nullOptional
The id of the type of work for this task.
taskStatusIdUUID or nullOptional
The id of the status for this task.
orderdouble or nullOptional
The order of the task in a task status column.
subtaskOrderdouble or nullOptional
The order of the subtask relative to its parent task.
entityIdUUID or nullOptional
The id of the entity the task is related to.
parentIdUUID or nullOptional
The id of the parent task. Setting this value means this is a subtask.
listslist of objectsOptional

The list(s) the new task should be added to.

Response

OK
namestring>=0 characters<=1000 characters

The name of the task. Max allowed length: 1000 characters.

descriptionstring or null or null>=0 characters<=25000 characters

The description of the task. Max allowed length: 25000 characters.

isPrioboolean or null
Whether this task is marked as priority.
startOndatetime or null or null
The expected start date and time of the task.
dueOndatetime or null or null
The expected due date and time of the task.
laneOrderinteger or null
The lane order defines the vertical position in the task board.
plannedDurationinteger or null
The expected planned workload of the task, in seconds.
idUUID or null
The Id of the task.
isExternalboolean or null

True if the model is coming from an external workspace (awork Connect). False otherwise.

isHiddenForConnectUsersboolean or null
True if the task is hidden for external workspace users. False otherwise.
baseTypeenum or null
The base type of the task. Can be 'private' for a private task or 'projecttask' for a project task.
Allowed values:
taskStatusIdUUID or null
The id of the status for this task.
taskStatusobject or null
typeOfWorkIdUUID or null
The id of the type of work of this task.
typeOfWorkobject or null
assigneeslist of objects or null
The list assigned users of this task, or empty if not user was assigned.
projectIdUUID or null or null
The id of the project this task is assigned to. Only set if this is a project task. In this case, it is equal to the EntityId.
projectobject or null
correlationIdUUID or null
The correlation id between parent and subtasks, meaning it's either the ParentId or its own Id.
parentIdUUID or null or null
The id of the parent task this of this subtask. Only set if this is a subtask.
parentTaskobject or null
isSubtaskboolean or null
True if the task is a subtask.
numberOfSubtasksinteger or null or null
The number of subtasks of this task. Null if it's not a parent task.
hasAttachmentboolean or null
Whether this task has an attachment.
listslist of objects or null
The lists to which the task is assigned to.
userIdUUID or null or null
The id of the user of the private task.
tagslist of objects or null
The list of tags.
createdOndatetime or null
The date this task was created.
createdByUUID or null
The id of the user who created this task.
updatedOndatetime or null
The date this task was last modified.
updatedByUUID or null
The id of the user who last modified this task.
closedOndatetime or null or null
The date the task was set to closed.
closedByUUID or null or null
The user who closed the task.
orderdouble or null
The order of the task in a task status column.
subtaskOrderdouble or null or null
The order of the subtask relative to its parent task.
createdFromTaskIdUUID or null or null
When the task was created by a recurrency rule, the id is the link to the template of which the task was created.
isRecurringboolean or null

If the task is a recurrency template (used to create new tasks by a recurrency rule), the flag is true.

customFieldslist of objects or null
Custom fields of the task.
trackedDurationinteger or null or null
The summed up duration of all time trackings for this task.
totalTrackedDurationinteger or null or null
The summed up duration of all time trackings for this task, including subtasks.
totalPlannedDurationinteger or null or null
The total planned workload of the task, in seconds, including subtasks.
remainingDurationinteger or null or null
The expected remaining duration from the original planned effort of the task, in seconds. Null if the user has no permissions to see time tracking information.
totalRemainingDurationinteger or null or null
The total remaining duration from the original planned effort of the task, in seconds, including subtasks.
resourceVersionlong or null
The version of the entity, updated on every modification, to the ticks in UTC. Not identical to UpdatedOn.
checklistItemsDoneCountinteger or null
The number of checklist items marked as done.
checklistItemsCountinteger or null
The total number of checklist items.
taskSchedulesCountinteger or null
The number of task schedules for this task.
isCompletelyScheduledboolean or null
Whether this task is completed scheduled.
commentCountinteger or null
The number of comments on this task.
entityIdUUID or null or nullDeprecated
The id of the entity this task is assigned to. This is the id of the project if this is a project task, or the id of a user if this is a private task. See 'BaseType' for supported types.