Dynamic Risk Response Options to be populated in risk assessment for a specific RAM

Ravi40
Tera Contributor

 

Hi Experts 🙂,

 

As we know, assessors in the risk assessment process currently have four out-of-the-box (OOB) options to choose from when responding to risk assessment: Mitigate, Accept, Avoid, and Transfer.

 

I am currently focused on enhancing our risk management processes within ServiceNow and am seeking guidance on how to make the risk response options dynamic based on the selected risk assessment methodology.

 

Specifically, I am planning to configure the system to display only the "Mitigate" and "Accept" options and hide "Avoid" and "Transfer" options for our Risk Assessment Methodology, referred to as "MMT RAM." For remining RAMs all four options should visible.

Could you please provide guidance on how to achieve this functionality? Any insights on configurations, scripts, or best practices would be greatly appreciated. (please check screenshot)

 

Ravi40_1-1752070890168.png

 

Thank you for your assistance!

Best regards,

Ravikrishna.

2 REPLIES 2

jaikishan1
ServiceNow Employee
ServiceNow Employee

Hi @Ravi40 ,

In order to have risk response options be available dynamically on workspace, you would need to customize the OOB scripts which fetch the choices for the assessment, the details are provided below:

  1. The response choices are shown based on the choices configured in the assessment table. The data for this is fetched using scripted rest endpoints.
  2. You can customise the existing logic to fetch the response choices applicable to the assessment to meet your requirements.
  3. You need to update the existing scripted rest endpoint riskAsmtApi to hide the responses that are not required.

  4. The code to be modified is provided below:

    All > Scripted REST APIs > riskAsmntApi > getRiskAsmtData > getAssessmentData > getRiskResponseData >  allResponses (Customise the values being put in all responses to meet the criteria.)

 

Regards,
Jai

Please mark this as helpful if it solves your query.

Regards,
Jai

Hi @jaikishan1
Will you be able to show the code update within the script include. this seems to breaks the system where the hide response options is hiding the create task option

Image with the error

SM6_0-1752858581389.png

 

Image OOTB

SM6_1-1752858770227.png

 

Thank you!