Constructor
# new ProjectTemplateTaskStatuses()
- See:
-
- [ProjectTasks in Awork API Docs](https://openapi.awork.com/#/ProjectTasks)
View Source endpoints/ProjectTemplateTaskStatuses.js, line 10
Classes
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. |
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. |
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. |
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. |
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. |