Class

ProjectTaskStatuses

ProjectTaskStatuses()

Class corresponding to Aworks ProjectTasks Endpoints
Constructor

# new ProjectTaskStatuses()

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

View Source endpoints/ProjectTaskStatuses.js, line 10

Classes

ProjectTaskStatuses

Methods

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

Creates a new task status for the specified project. To create the task status, the user need write permissions on feature Project-Planning.
Parameters:
Name Type Description
taskStatus TaskStatusCreateModel The model to create a task status.

View Source endpoints/ProjectTaskStatuses.js, line 52

Promise.<TaskStatus>

# async createFromTemplate(projectTemplateId) → {Promise.<void>}

Creates new task statuses from the project template for the the specified project.
Parameters:
Name Type Description
projectTemplateId String The id of the project template.

View Source endpoints/ProjectTaskStatuses.js, line 63

Promise.<void>

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

Deletes the project's task status with the specified id. To delete the task status, the user need write permissions on feature Project-Master-Data. If the status still has related tasks, it's necessary to provide another task status to move the tasks to.
Parameters:
Name Type Description
taskStatusId String The id of the task status.

View Source endpoints/ProjectTaskStatuses.js, line 88

Promise.<void>

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

Returns the task status of the project with the specified id. To get the task status, the user need at least read permissions on feature Project-Master-Data.
Parameters:
Name Type Description
taskStatusId String The id of the task status.

View Source endpoints/ProjectTaskStatuses.js, line 21

Promise.<TaskStatus>

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

Returns all task statuses of the project with the specified id. To get the task statuses, the user need at least read permissions on feature Project-Master-Data.
Parameters:
Name Type Attributes Description
options ListOptions <optional>
Pagination and filtering options.

View Source endpoints/ProjectTaskStatuses.js, line 32

Promise.<Array.<TaskStatus>>

# async update(taskStatusId, taskStatus)

Updates a task status for the specified project. To update the task status, the user need write permissions on feature Project-Master-Data.
Parameters:
Name Type Description
taskStatusId String The id of the task status.
taskStatus TaskStatusUpdateModel The model to update a task status.

View Source endpoints/ProjectTaskStatuses.js, line 77