Class

UsersAssignedTasks

UsersAssignedTasks(client, taskId, userId)

Class corresponding to Aworks UsersAssignedTasks Endpoints
Constructor

# new UsersAssignedTasks(client, taskId, userId)

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

View Source endpoints/UsersAssignedTasks.js, line 9

Classes

UsersAssignedTasks

Methods

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

Returns the assigned task with the specified id.

View Source endpoints/UsersAssignedTasks.js, line 30

Promise.<Task>

# async getAllAvailableTasks(optionsopt) → {Promise.<Array.<Task>>}

Returns all tasks the user is allowed to see. This contains project tasks if the user has "project-planning" permissions, all assigned tasks and also private tasks created by the user and assigned to other users.
Parameters:
Name Type Attributes Description
options ListOptions <optional>
Pagination and filtering options

View Source endpoints/UsersAssignedTasks.js, line 61

Promise.<Array.<Task>>

# async getTaskTags() → {Promise.<Array.<String>>}

Returns all tags from the available tasks of the user ordered by name. The user making the request needs to be assigned to the task or needs read permissions on the feature "project-planning-data" for project tasks or read permissions on the "entity-master-data" of the entity of the task.

View Source endpoints/UsersAssignedTasks.js, line 51

Promise.<Array.<String>>

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

Returns all tasks assigned to a user. If a user gets his own tasks, the private tasks are part of the result as well. If you need only tasks of projects in status 'progress', set the 'inProgress' parameter to 'true'.
Parameters:
Name Type Attributes Description
options ListOptions <optional>
Pagination and filtering options

View Source endpoints/UsersAssignedTasks.js, line 41

Promise.<Array.<Task>>