Constructor
# new TaskBundleTaskListTemplates(client, taskBundleId)
Endpoint constructor
Parameters:
Name | Type | Description |
---|---|---|
client |
Client
|
|
taskBundleId |
String
|
The id of the task bundle. |
- See:
-
- [TaskBundles in Awork API Docs](https://openapi.awork.com/#/TaskBundles)
View Source endpoints/TaskBundleTaskListTemplates.js, line 10
Classes
Methods
# async create(taskListTemplate) → {Promise.<TaskListTemplate>}
Creates a new task list template for the task bundle with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
taskListTemplate |
TaskListTemplateCreateModel
|
The model to create a new task list template. |
Promise.<TaskListTemplate>
# async delete(taskListTemplateId) → {Promise.<void>}
Deletes the task list template for the task bundle with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
taskListTemplateId |
String
|
The id of the task list template. |
Promise.<void>
# async get(taskListTemplateId) → {Promise.<TaskListTemplate>}
Returns the task list template of the task bundle with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
taskListTemplateId |
String
|
The id of the task list template. |
Promise.<TaskListTemplate>
# async list(optionsopt) → {Promise.<Array.<TaskListTemplate>>}
Returns all task list templates of the task bundle with the specified id.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ListOptions
|
<optional> |
Pagination and filtering options. |
Promise.<Array.<TaskListTemplate>>
# taskTemplates(projectId) → {ProjectProjectStatus}
Returns the TaskBundleTaskListTemplatesTaskTemplates Endpoint with the specified task bundle Id and task list template Id.
Parameters:
Name | Type | Description |
---|---|---|
projectId |
String
|
The id of the task list template. |
ProjectProjectStatus
# async update(taskListTemplateId, taskListTemplate) → {Promise.<TaskListTemplate>}
Updates the task list template for the task bundle with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
taskListTemplateId |
String
|
The id of the task list template. |
taskListTemplate |
TaskListTemplateUpdateModel
|
The model to update a task list template. |
Promise.<TaskListTemplate>
# async updateOrder(taskListTemplateId, order)
Updates the order of a task list template in a task bundle.
Parameters:
Name | Type | Description |
---|---|---|
taskListTemplateId |
String
|
The id of the task list template. |
order |
Number
|
The order of the list. |