Constructor
# new TaskListTasks(client, entityName, entityId, taskListId)
Endpoint constructor
Parameters:
Name | Type | Description |
---|---|---|
client |
Client
|
|
entityName |
String
|
Currently only 'projects' supported. |
entityId |
String
|
The id of the entity. (projectId) |
taskListId |
String
|
The id of the task list. |
- See:
-
- [Tasklists in Awork API Docs](https://openapi.awork.com/#/Tasklists)
Classes
Methods
# async get(taskId) → {Promise.<Task>}
Returns the task with the specified id in the specified task list.
To get a project task from the project task list, the user needs read permissions on the project-planning-data feature or the current user must be assigned to the task with the specified id. For a private task list no permissions are required.
Parameters:
Name | Type | Description |
---|---|---|
taskId |
String
|
The id of the task. |
Promise.<Task>
# async updateOrder(taskId, order) → {Promise.<void>}
Updates the order of a task in a task list.
To update the order of tasks in a project task list, the user needs manage permissions on the project-planning-data feature.
Parameters:
Name | Type | Description |
---|---|---|
taskId |
String
|
The id of the task. |
order |
Number
|
The order of the task in the list. |
Promise.<void>