
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2020 09:02 AM
Which is the script that close open project tasks when the Project is set to Close Complete/Incomplete/Skipped?
Basically after this message is displayed (triggered by the Save action), what happens?
Many thanks!
Solved! Go to Solution.
- Labels:
-
Project Portfolio Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2020 05:18 AM
What that does is close all associated project tasks and sub-task that are not closed out.
This is from the Business Rule "Process State Change" on pm_project table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2020 05:18 AM
What that does is close all associated project tasks and sub-task that are not closed out.
This is from the Business Rule "Process State Change" on pm_project table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2020 06:48 AM
Yes correct. which triggers script include "PlannedTaskStateChangeHandler".
thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2021 01:10 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2021 06:37 AM
Hello,
You mentioned you created some custom state for Project, which is ok. I am not going to point fingers at you and say how bad that is.
What seems to be happening is that the 'Process State Change' business rule is running into issues because the states of the project and project tasks are not defined correctly into 'pending', 'open', 'work in progress' and 'closed' states so when we close the parent project this business rule goes to the project tasks and will close them as well however the state values don't match and that results in the tasks to be set to pending (the default value). Both the Project and Project task use the Planned Task Dictionary Override for State.
Part of this process is defined on the dictionary overrides for the state field of the task record. You would need to create one for the Project task table and/or the Project table as it does not have one out of the box a
Here is the documentation that explains how to modify or create a new
This might not work either, but my first troubleshooting step would be to look into this. I hope that points you in the right direction!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2021 01:02 PM
Thank you - and yes I am aware this is not a good idea however management wants this.