Risk assessment answer's value based on an other answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2023 06:43 AM
Hello,
I would like to know if there is an OOB functionnality to modify the value of an answer (or the weight of the question) based on an other answer in the same risk assessment.
Example:
Question1 (weight= 10):
Choice A (value = 1)
Choice B (value = 2)
If Question1.Choice == A:
Question2 (weight= 10):
Choice A (value = 1)
Choice B (value = 2)
Else if Question1.Choice == B:
Question2 (weight= 10):
Choice A (value = 1)
Choice B (value = 4)
So if my answers are Question1.Choice = A and Question2.Choice = B so my risk score should be 30 (Σ(Question.weight*Answer.value) = 10*1+10*2 = 30).
But if my answers are Question1.Choice = B and Question2.Choice = B so my risk score should be 60 (10*2+10*4 = 60).
Question2 has always the same question and answers, only the values (or the weight) changes.
I know I can create 2 different questions and with the use of the "Depends on" field I can chose to display the question with the value I want based on an other question's answer, but my point here is to avoid making duplicate questions, to make the assessment more maintainable. If you have any advice on this or any good practice with risk assessment, do not hesitate to write me.
Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2023 09:18 AM
@MarkoMsnow Did you get a chance to explore Decision Builder feature in ServiceNow. Using the decision tables you can create various permutations of your choices and easily calculate the result without writing a lot of if else statements in code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 06:46 AM
Hello Sandeep,
Thanks for your reply.
I explored Decision Builder, but it seems not applicable for Change Risk Assessment (change_risk_asmt) or I don't know how to use it for my case. Maybe you have an example to show me ?
I wrote my case with if else statements to explain how I wan't it to works, but I'm not using any code right now, I'm just using default Assessment Metric (asmt_metric) and Assessment Metric Definition (asmt_metric_definition) fields. Even if I want to script, I don't know how to setup it properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 02:32 AM
@MarkoMsnow did you get any solution on this ?
I have a similar kind of requirement