Script to copy the values from demand to project form using UI Action

shallumittal
Tera Contributor

I have a requirement to create a project from demand form and also to copy the values from demand to project form.

I have checked "Create Project" UI Action but unable to add customized field script to get values. I also tried the script similar to "Create change" or "Create Problem" but we need same functionality of "Create Project" UI Action.  

It would be great help if someone guide me how to do scripting for this.  

Thanks

1 ACCEPTED SOLUTION

venkatvraman17
Kilo Guru

DemandToProjectCreationHelper Script include takes care of creating a Project from a Demand object and population all the items from Demand to Project. You can either update that Script Include or create a custom script as per dvp to populate the information on the project from the UI Action.


View solution in original post

6 REPLIES 6

dvp
Mega Sage
Mega Sage

after if(project.next()){ in the UI action


add all the lines that you would like to copy and use project.update();




project.setValue("short_description", current.short_description);


    project.setValue("description", current.description);


    project.setValue("u_run_grow_transform", current.u_run_grow_transform);


    project.setValue("portfolio", current.portfolio);



project.update();


venkatvraman17
Kilo Guru

DemandToProjectCreationHelper Script include takes care of creating a Project from a Demand object and population all the items from Demand to Project. You can either update that Script Include or create a custom script as per dvp to populate the information on the project from the UI Action.


Thanks for the solution


Can you please help me with the script here please...