Which is the script that close open project tasks when the Project is set to Close Complete/Incomplete/Skipped?

edo88
Giga Contributor

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?

 

find_real_file.png

 

Many thanks!

1 ACCEPTED SOLUTION

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

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

View solution in original post

9 REPLIES 9

Prateek kumar
Mega Sage

It may be a custom UI action in your instance??

https://YourInstanceName.service-now.com/sys_ui_action_list.do?sysparm_query=scriptLIKEconfirm%5Etable%3Dpm_project&sysparm_view=


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

all the resulting UI Actions are OOTB, like that confirmation message.

It appears when you have Project Tasks not closed and you're trying to close a Project, so it's like a warning.

After you confirm the close state is saved and the form reloaded and since the Project is in Close state the system aligns all its open tasks to the same one. That's the part I'd like to find out where it is and optionally which is the trigger of it.

Matt Kozinski
Kilo Guru

Hi.

Found that text in 'AjaxProjectUtil' Script include. Is that it?

That is the script include where the message is configured but I cannot find what happens next. I don't understand if it's the confim/ok button that triggers the action or the script that given the update of the project state it propagates it with some logic to the still open tasks 😞 so I don't that get if it's a script include or some kind of business rule too