How to stop reopening project task after closing in SPM

SarveshI
Tera Contributor

i have created 4 project task when phase is initializing and state is pending.

the requirement is when i close 4th task project state goes to open.

The problem i am facing is when i close 4th task project state goes to open but all the 4 task that are closed that move again to open state.

How i can restrict the reopening task again? 

1 REPLY 1

Vishwa Pandya19
Mega Sage

Hello,

 

Assuming you are changing the state of the project via a BR, you can use setWorkflow(false) before the update() so that only the changes you are mentioning get updated. The other BR's will not run thus the states of the project tasks should not change.

 

If my answer has helped you in any way please mark it as correct or helpful.