Calculate risk using impacyt and urgency in change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 08:44 PM - edited 07-28-2025 08:49 PM
HI i am trying to set value of risk based on impact and urgency tried using onchange client script on both fields but its not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 08:55 PM
you should set the choice value and not choice label for that field.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 10:05 PM
Hi @rameshmalla ,
You are setting the label text to the risk variable. please set/assign with the backend value for the variable.
Stay awesome,
Roshnee Dash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 10:15 PM
Hi @rameshmalla
You are setting "choice label" which is incorrect, you should set choice value (backend choice values).
like this:
risk = '1'; // not '1 - High'
If my response solves your query, please marked helpful by selecting Accept as Solution and Helpful. Let me know if anything else is required.
Thanks,
Prerna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 10:32 PM
Hi @rameshmalla
Practically, the request you're making is incorrect. In ServiceNow, a risk is used to determine the impact—not the other way around. By reversing this, you're breaking the out-of-the-box (OOTB) risk assessment method. There are OOTB risk conditions that calculate the risk and then set the impact value on the change. Please revisit and validate your requirement, as it currently goes against what the system is designed to do.
Since it will always be in a loop — you're setting the impact based on risk, and then the risk conditions run and change the impact again — you need to correct your approach here.
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]
****************************************************************************************************************