Constructor
# new ProjectTaskStatuses()
- See:
-
- [ProjectTasks in Awork API Docs](https://openapi.awork.com/#/ProjectTasks)
Classes
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. |
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. |
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. |
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. |
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. |
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. |