Type parameters
-
T: ProjectPlanElementItemData
-
P: ItemData
Hierarchy
- ApplicationProjectPlanElement
Methods
updateEstimated
-
Update estimated dates in a project plan element.
const projectPlanElementApp = Context.fields._project_task.app; const projectPlanElement = Context.data._project_task; const currentUser = System. users.getCurrentUser(); const today = new TDate(); const tomorrow = today. addDate(0, 0, 1); const comment = 'New estimated dates'; await projectPlanElementApp.updateEstimated(projectPlanElement, currentUser, today, tomorrow, comment);
Parameters
-
item: ApplicationItemRef<T, P>
-
updatedBy: UserItemRef
-
startDate: TDate | null
-
endDate: TDate | null
-
comment: string | null
Returns Promise<void>
-
Was this helpful?
Project plan element object
This object is only used for methods available in the context of the ** Project Plan Element** app. Here is an example of how it can be used in a business process script in the Projects workspace:
const projectPlanElement = Context.data.projectPlanElement; if (projectPlanElement) { await Namespace.app._project_plan_element. updateEstimated(projectPlanElement, currentUser, startDate, endDate, comment); }