Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Risk and Impact calculation in change request

ServiceNow10sun
Giga Guru

Hi All, 

 

I have requirement of  Calculating Risk based on 2 set of questionnaire example 5 questionnaire related to risk and risk should get calculated and another set of questions based on which impact should get calculated and based on these results risk and impact again a new "New Risk" ( Customized field) field should calculated.

 

I am able to create single assessment using the Risk assessment plugin  and its calculating risk field, however my client a questionnaire of impact as well . How to achieve this. Means based on 2 assessments the final result should get populated. 

Example - Risk  is low as per  the assessment and impact is Moderate then in the field " New Risk" result should be "Minor".

Is it possible?

 

 

5 REPLIES 5

Service_RNow
Mega Sage

Hi @ServiceNow10sun 

Out of the box there are Risk Conditions defined. It uses this conditions, like lead time, business service critically, etc to calculate risk:

RamSingh_0-1708400520768.png

 

The second way is to load the plugin Change Management - Risk Assessment which uses a series of questions and values to the answers to calculate risk:Define risk assessments

Learn more from here : Risk conditions and calculation

Mark my answer correct & Helpful, if Applicable.

 

please hit the Thumb Icon and mark as Correct !!

But is there any option that user can get two set of questionnaire one for Risk and another for impact . As the risk conditions doesnt give the option of assessment questions.

Hi @ServiceNow10sun 

 

No , OOTB only 1 risk questioner we can use and that is only for Risk, and if you want to set impact use Risk Conditions, which provide and update Impact as well. 

 

AGLearnNGrow_0-1708427981796.png

 

*************************************************************************************************************
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]

****************************************************************************************************************

Amit Gujarathi
Giga Sage
Giga Sage

HI @ServiceNow10sun ,
I trust you are doing great.

 

Here's an example script that you can adapt to calculate the "New Risk" field:

 

(function() {
    // Get the values of risk and impact assessments
    var risk = current.risk_assessment_field; // Replace with the actual field name for risk assessment
    var impact = current.impact_assessment_field; // Replace with the actual field name for impact assessment

    // Define mapping of risk and impact levels to the "New Risk" levels
    var riskMapping = {
        'Low': {
            'Low': 'Minor',
            'Moderate': 'Minor',
            'High': 'Moderate',
            'Very High': 'Significant'
        },
        'Moderate': {
            'Low': 'Minor',
            'Moderate': 'Moderate',
            'High': 'Significant',
            'Very High': 'High'
        },
        'High': {
            'Low': 'Moderate',
            'Moderate': 'Significant',
            'High': 'High',
            'Very High': 'Critical'
        },
        'Very High': {
            'Low': 'Significant',
            'Moderate': 'High',
            'High': 'Critical',
            'Very High': 'Critical'
        }
    };

    // Set the value of the "New Risk" field based on risk and impact assessments
    var newRisk = riskMapping[risk][impact];

    // Update the "New Risk" field
    current.new_risk_field = newRisk; // Replace with the actual field name for the "New Risk" field
})();
 

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi