Class

TaskBundleTaskListTemplates

TaskBundleTaskListTemplates(client, taskBundleId)

Class corresponding to Aworks tasklisttemplates related part of the TaskBundles Endpoints
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

TaskBundleTaskListTemplates

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.

View Source endpoints/TaskBundleTaskListTemplates.js, line 57

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.

View Source endpoints/TaskBundleTaskListTemplates.js, line 84

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.

View Source endpoints/TaskBundleTaskListTemplates.js, line 29

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.

View Source endpoints/TaskBundleTaskListTemplates.js, line 40

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.

View Source endpoints/TaskBundleTaskListTemplates.js, line 102

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.

View Source endpoints/TaskBundleTaskListTemplates.js, line 73

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.

View Source endpoints/TaskBundleTaskListTemplates.js, line 93