Lead time calculation post risk assessment is done

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 09:48 PM
i have activated the risk assesment plugin and based on my questions we are calculating the risk.
Now post risk assesment is calculated i have the below requirement as well
like if the risk is low it should have the lead of minimum 3 days and it the risk is high then lead time should minimum 7 days.acoordingly .
How i should achieve this?
@Ankur Bawiskar Can you guide here?
Regards,
Debasis
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 10:24 PM - edited ‎06-05-2025 10:25 PM
Hello @Debasis Pati,
-
1. Configure the Risk Assessment Plugin:Ensure the Risk Assessment plugin is properly set up and the risk calculation process is working correctly.
-
2. Create a Business Rule:
- Condition: Trigger the business rule when a change request is created or updated and the risk level is determined.
- Script:
// Get the change request risk level
var riskLevel = current.risk.getDisplayValue();
// Determine the lead time based on the risk level
var leadTime = 3; // Default lead time
if (riskLevel == "High") {
leadTime = 7; // Set lead time to 7 days for high risk
}
// Update the change request with the new lead time
current.variables.lead_time.setValue(leadTime); // Replace 'lead_time' with the appropriate field
- Test and Validate: Thoroughly test the business rule to ensure it correctly updates the lead time based on the calculated risk level.
-
Custom Fields:You may need to create custom fields (e.g.,
lead_time
) on the change request form to store the calculated lead time. -
User Interface:Update the change request form to display the lead time to users.
-
Business Logic:You can further customize the business rule to handle different risk levels and lead times.
-
Integration with other systems:If the change management process integrates with other systems, ensure the lead time is updated in those systems as well.If this is helpful, please hit the thumbs up button and accept the correct solution by referring to this solution in future it will be helpful to them.Thanks & Regards,Abbas Shaik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2025 02:29 AM
Hey Abbas,
How ideally people do it?
for example i am creating one normal change i have the risk assessment plugin already activated i have created one change of normal type where i have given the start date as tomorrow.
when i clicked on risk assesment depending upon my questions and values now it did set the risk value to high and as per my requirement now my change should say me lead time should be changed to proceed further because for high rish changes lead time should be 7 days how ideally this kind of scenarios are developed?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2025 04:41 AM
Hello @Abbas_5 & @Dr Atul G- LNG ,
so what i did for it is below
i have created a before update business rule with condition as risk changes>
Business rule:
also i have created one on change client script as well on start date .
on change client script:
Is this a correct approach?
Regards,
Debasis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 10:26 PM
Greetings!!
Did you check the out-of-the-box (OOTB) risk conditions? There is also a risk condition to check the lead time.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************