Class

Task

Task(data)

Task Model
Constructor

# new Task(data)

Model constructor
Parameters:
Name Type Description
data TaskLike

View Source model/Task.js, line 7

Classes

Task

Members

String

# baseType

The base type of the task. Can be 'private' for a private task or 'projecttask' for a project task.

View Source model/Task.js, line 112

String

# closedBy

The user who closed the task.

View Source model/Task.js, line 325

String

# closedOn

The date the task was set to closed.

View Source model/Task.js, line 317

String

# createdBy

The id of the user who created this task.

View Source model/Task.js, line 293

String

# createdFromTaskId

When the task was created by a recurrency rule, the id is the link to the template of which the task was created.

View Source model/Task.js, line 341

String

# createdOn

The date this was created.

View Source model/Task.js, line 285

String

# description

The description of the task.

View Source model/Task.js, line 32

String

# dueOn

The expected due date and time of the task.

View Source model/Task.js, line 56

String

# entityId

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.

View Source model/Task.js, line 257

Object

# entityInformation

The entity to which the task is linked.

View Source model/Task.js, line 365

Boolean

# hasAttachment

Whether this task has an attachment.

View Source model/Task.js, line 228

String

# id

The Id of the task.

View Source model/Task.js, line 88

Boolean

# isPrio

Whether this task is marked as priority.

View Source model/Task.js, line 40

Boolean

# isRecurring

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

View Source model/Task.js, line 349

String

# key

The unique task key, which needs to be unique within the entire workspace.

View Source model/Task.js, line 96

Integer

# laneOrder

The lane order defines the vertical position in the gant planner.

View Source model/Task.js, line 64

Array.<ListsObject>

# lists

The lists to which the task is assigned to.

View Source model/Task.js, line 249

String

# name

The name of the task. Required.

View Source model/Task.js, line 24

Integer

# numberCount

The numerical part of the key.

View Source model/Task.js, line 104

Number

# order

The order of the task in a task status column.

View Source model/Task.js, line 333

Integer

# plannedDuration

The expected planned workload of the task, in seconds.

View Source model/Task.js, line 72

String

# projectId

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.

View Source model/Task.js, line 203

Integer

# remainingDuration

The expected remaining duration from the original planned effort of the task, in seconds.

View Source model/Task.js, line 80

Integer

# resourceVersion

The version of the entity continuously incremented by 1 on every update of the entity.

View Source model/Task.js, line 373

String

# startOn

The expected start date and time of the task.

View Source model/Task.js, line 48

Integer

# subtasksCount

The total number of subtasks.

View Source model/Task.js, line 389

Integer

# subtasksDoneCount

The number of subtasks which are already done.

View Source model/Task.js, line 381

Array.<TagsListObject>

# tags

The list of tags.

View Source model/Task.js, line 277

TaskStatus

# taskStatus

The status of the task.

View Source model/Task.js, line 144

String

# taskStatusId

The id of the status for this task.

View Source model/Task.js, line 120

Integer

# trackedDuration

The summed up duration of all time trackings for this task.

View Source model/Task.js, line 357

TypeofWork

# typeOfWork

The type of work of the task.

View Source model/Task.js, line 168

String

# typeOfWorkId

The id of the type of work of this task.

View Source model/Task.js, line 152

String

# updatedBy

The id of the user who last modified this task.

View Source model/Task.js, line 309

String

# updatedOn

The date this task was last modified.

View Source model/Task.js, line 301