Class

TaskTemplates

TaskTemplates(client)

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

# new TaskTemplates(client)

Endpoint constructor
Parameters:
Name Type Description
client Client
See:
  • [TaskBundles in Awork API Docs](https://openapi.awork.com/#/TaskBundles)

View Source endpoints/TaskTemplates.js, line 9

Classes

TaskTemplates

Methods

# async recurrency(taskTemplateId) → {Promise.<Recurrency>}

Returns the existing recurrency rule for one task template.
Parameters:
Name Type Description
taskTemplateId String The id of the task template.

View Source endpoints/TaskTemplates.js, line 32

Promise.<Recurrency>

# async setAssignees(taskTemplateId, userIds) → {Promise.<void>}

This method is used to assign users to a task template that belongs to a task bundle. You always need to pass all users you want to assign. If an already assigned user is not in the passed user id list, he/she gets unassigned. Users need write permissions for the feature 'task-manage-config'.
Parameters:
Name Type Description
taskTemplateId string The id of the task template.
userIds Array.<String> An array with user ids.

View Source endpoints/TaskTemplates.js, line 44

Promise.<void>