Class

ProjectTemplateTaskStatuses

ProjectTemplateTaskStatuses()

Class corresponding to Aworks ProjectTasks Endpoints
Constructor

# new ProjectTemplateTaskStatuses()

See:
  • [ProjectTasks in Awork API Docs](https://openapi.awork.com/#/ProjectTasks)

View Source endpoints/ProjectTemplateTaskStatuses.js, line 10

Classes

ProjectTemplateTaskStatuses

Methods

# async create(taskStatus) → {Promise.<TaskStatus>}

Creates a new task status for the specified project template.
Parameters:
Name Type Description
taskStatus TaskStatusCreateModel The model to create a task status.

View Source endpoints/ProjectTemplateTaskStatuses.js, line 51

Promise.<TaskStatus>

# async delete(taskStatusId) → {Promise.<void>}

Deletes the project task status with the specified id.
Parameters:
Name Type Description
taskStatusId String The id of the task status.

View Source endpoints/ProjectTemplateTaskStatuses.js, line 77

Promise.<void>

# async get(taskStatusId) → {Promise.<TaskStatus>}

Returns the task status of the project template with the specified id.
Parameters:
Name Type Description
taskStatusId String The id of the task status.

View Source endpoints/ProjectTemplateTaskStatuses.js, line 21

Promise.<TaskStatus>

# async list(optionsopt) → {Promise.<Array.<TaskStatus>>}

Returns all task statuses of the project template with the specified id.
Parameters:
Name Type Attributes Description
options ListOptions <optional>
Pagination and filtering options.

View Source endpoints/ProjectTemplateTaskStatuses.js, line 32

Promise.<Array.<TaskStatus>>

# async update(taskStatusId, taskStatus)

Updates a task status for the specified project template.
Parameters:
Name Type Description
taskStatusId String The id of the task status.
taskStatus TaskStatusUpdateModel The model to update a task status.

View Source endpoints/ProjectTemplateTaskStatuses.js, line 66