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); 
} 

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>

      Item of the Project Plan Element app.

    • updatedBy: UserItemRef

      User who updated the estimated dates.

    • startDate: TDate | null

      Estimated start date.

    • endDate: TDate | null

      Estimated end date.

    • comment: string | null

      Comment.

    Returns Promise<void>