Classes
Methods
# async create(milestone) → {Promise.<ProjectMilestone>}
Creates a new project milestone.
The user needs 'write' permissions of feature 'project-planning-data' to get the data.
Parameters:
Name | Type | Description |
---|---|---|
milestone |
ProjectMilestoneCreateModel
|
The model to create a project milstone. |
>
Promise.<ProjectMilestone>
# async delete(milestoneId) → {Promise.<void>}
Deletes the project milestone with the specified id.
The user needs 'write' permissions of feature 'project-planning-data' to get the data.
Parameters:
Name | Type | Description |
---|---|---|
milestoneId |
String
|
The id of the project milestone. |
Promise.<void>
# async list(optionsopt) → {Promise.<Array.<ProjectMilestone>>}
Returns all project milestones the user is allowed to see.
The user only gets returned all milestones of projects he has 'read' permissions of feature 'project-planning-data' for.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ListOptions
|
<optional> |
Pagination and filtering options. |
Promise.<Array.<ProjectMilestone>>
# async update(milestoneId, milestone) → {Promise.<ProjectMilestone>}
Updates the specified project milestone. The user needs 'write' permissions of feature 'project-planning-data' to get the data.
Parameters:
Name | Type | Description |
---|---|---|
milestoneId |
String
|
The id of the project milestone. |
milestone |
ProjectMilestoneUpdateModel
|
The model to update a project milestone. |
Promise.<ProjectMilestone>