Demand - Set Default Preference to Close Demand on Closure of Project

Kevin21
Tera Contributor

I would like to set the Default behavior for Demand that are Projects to close the Demand On Closure of project, buit there seems to be javascript there and that gives me pause.

find_real_file.png

1 ACCEPTED SOLUTION

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Hello Kevin,

I understand now. That JavaScript calls a Script Include called DemandUtil that sets the default for Close Demand field. You can change the Default to on_close_project like the picture below . I tested this out and it work, still closes the demand when the project is closed. 

Or you can modify the Script include and set the choice value in there like the Picture below. To replace on_creating_project to this value - on_closing_project. This also works when a Project is closed.

I would change the script IMO.

 

find_real_file.png

 

Before

find_real_file.png

 

After

find_real_file.png

View solution in original post

6 REPLIES 6

Hello Miguel,

The above steps worked if we create the Demand directly but When we create the demand from an IDEA then the Close Demand stays on "NONE"

Anyway to change and match with the Demand default value?

Thanks,
Gurbir

Brandon R1
Tera Contributor

Can this same method/process be used for Create Enhancement?? In other words, I want to close a demand when the Create Enhancement link is clicked.

Thanks,

Brandon