Classes
Methods
# async create(subTask) → {Promise.<SubTask>}
Creates a subtask for a task with the specified id. The required permissions depend on the base type of the task. If the task is a project task, either 'write' permissions on the 'project-master-data' feature are required or the user needs to be assigned. For a user's private task, no special permissions are required.
Parameters:
Name | Type | Description |
---|---|---|
subTask |
SubTaskCreateModel
|
The model to create the subtask. |
Promise.<SubTask>
# async delete(subtaskId) → {Promise.<void>}
Deletes a subtask for a task with the specified id. The required permissions depend on the base type of the task. If the task is a project task, either 'write' permissions on the 'project-master-data' feature are required or the user needs to be assigned. For a user's private task, no special permissions are required.
Parameters:
Name | Type | Description |
---|---|---|
subtaskId |
String
|
The id of the subtask. |
Promise.<void>
# async get(subtaskId) → {Promise.<SubTask>}
Returns a subtask for a task with the specified id. The required permissions depend on the base type of the task. If the task is a project task, either 'read' permissions on the 'project-planning-data' feature are required or the user needs to be assigned. For a user's private task, no special permissions are required.
Parameters:
Name | Type | Description |
---|---|---|
subtaskId |
String
|
The id of the subtask. |
Promise.<SubTask>
# async list(optionsopt) → {Promise.<Array.<SubTask>>}
Returns the subtasks for a task with the specified id.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ListOptions
|
<optional> |
Pagination and filtering options |
Promise.<Array.<SubTask>>
# projectSubtasks(subtaskId) → {ProjectSubtasks}
Returns the ProjectsSubtasks Endpoint with the specified subtask id.
Parameters:
Name | Type | Description |
---|---|---|
subtaskId |
String
|
The id of the subtask. |
# async update(subtaskId, subTask) → {Promise.<SubTask>}
Updates a subtask for a task with the specified id. The required permissions depend on the base type of the task. If the task is a project task, either 'write' permissions on the 'project-master-data' feature are required or the user needs to be assigned. For a user's private task, no special permissions are required.
Parameters:
Name | Type | Description |
---|---|---|
subtaskId |
String
|
The id of the subtask. |
subTask |
SubTaskUpdateModel
|
The model to update the subtask. |
Promise.<SubTask>
# userOtherPrivateTasksSubtasks(subtaskId) → {UserOtherPrivateTasksSubtasks}
Returns the UserOtherPrivateTasksSubtasks Endpoint with the specified subtask id.
Parameters:
Name | Type | Description |
---|---|---|
subtaskId |
String
|
The id of the subtask. |
# userPrivateTasksSubtasks(subtaskId) → {UserPrivateTasksSubtasks}
Returns the UserPrivateTasksSubtasks Endpoint with the specified subtask id.
Parameters:
Name | Type | Description |
---|---|---|
subtaskId |
String
|
The id of the subtask. |