Class

TaskTemplateSubTaskTemplates

TaskTemplateSubTaskTemplates(client, taskTemplateId)

Class corresponding to Aworks subtasktemplates related part of the TaskBundles Endpoints
Constructor

# new TaskTemplateSubTaskTemplates(client, taskTemplateId)

Endpoint constructor
Parameters:
Name Type Description
client Client
taskTemplateId String The id of the task template.
See:
  • [TaskBundles in Awork API Docs](https://openapi.awork.com/#/TaskBundles)

View Source endpoints/TaskTemplateSubTaskTemplates.js, line 9

Classes

TaskTemplateSubTaskTemplates

Methods

# async create(subTaskTemplate) → {Promise.<SubTaskTemplate>}

Creates a new subtask template.
Parameters:
Name Type Description
subTaskTemplate SubTaskTemplateCreateModel The model to create the subtask template.

View Source endpoints/TaskTemplateSubTaskTemplates.js, line 55

Promise.<SubTaskTemplate>

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

Deletes a subtask template for a task template with the specified id. To access the task template, 'write' permissions on the 'project-planning-data' feature or on the 'project-manage-config' feature are required.
Parameters:
Name Type Description
subtaskTemplateId String The id of the subtask template.

View Source endpoints/TaskTemplateSubTaskTemplates.js, line 84

Promise.<void>

# async get(subTaskTemplateId) → {Promise.<SubTaskTemplate>}

To access the task template, 'read' permissions on the 'project-planning-data' feature or on the 'project-manage-config' feature are required.
Parameters:
Name Type Description
subTaskTemplateId String The id of the subtask template id.

View Source endpoints/TaskTemplateSubTaskTemplates.js, line 27

Promise.<SubTaskTemplate>

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

To access the task template, 'read' permissions on the 'project-planning-data' feature or on the 'project-manage-config' feature are required.
Parameters:
Name Type Attributes Description
options ListOptions <optional>
Pagination and filtering options.

View Source endpoints/TaskTemplateSubTaskTemplates.js, line 38

Promise.<Array.<SubTaskTemplate>>

# async update(subTaskTemplateId, subTaskTemplate) → {Promise.<SubTaskTemplate>}

Updates a subtask template for a task template with the specified id. To access the task template, 'write' permissions on the 'project-planning-data' feature or on the 'project-manage-config' feature are required.
Parameters:
Name Type Description
subTaskTemplateId String The id of the subtask template.
subTaskTemplate SubTaskTemplateUpdateModel The model to update the subtask template.

View Source endpoints/TaskTemplateSubTaskTemplates.js, line 73

Promise.<SubTaskTemplate>