Customize component "Advanced risk assessment 1" in risk workspace through UI Builder

AnkitS1128
Tera Contributor

We have a requirement  to migrate Advanced Risk Assessment from native UI to workspace UI. However we are not able to replicate it as we identified its a component named :"Advanced risk assessment 1" and we are not able to modify it.Kindly suggest what would be the best way to modify this component based on out requirement.

 

 

We are aware that we can create a custom component , but here we want to add on some of custom fields from Native to Workspace

Please find the attached screenshots to see customization in native UI.

 

 

 

 

Challenge 1: We need some custom field to show up in the scoring section of the advance risk assessment for both inherent and control assessment section.

Challenge 2: We need custom input from users, i.e in an assessment users need to provide 2 response for a control, they need to provide mitigation weight along with Control effectiveness score. CES is present in OOB , But mitigation weight is what we need to pull to the Workspace

Challenge 3: We need to validate the mitigation weight provided for each control and provide some weight less than 100

 

1 ACCEPTED SOLUTION

jaikishan1
ServiceNow Employee
ServiceNow Employee

Hi @AnkitS1128 ,
The advanced risk assessment is a custom component and there it is not customizable.
You can create custom elements in the scoring context slot provided on the page in the UI builder to achieve your customizations.

The validations on this component are handled using scripted rest apis. You can write your validation logic in the same.
You can review the existing APIs like "autosaveresponses", "saveFactorResponses" and write your validation logic in the similar manner.
The rest API details are provided below:
Module: Scripted Rest APIs
API name: riskasmntapi

Regards,
Jai

Please mark this as helpful if it solves your query.

Regards,
Jai

View solution in original post

6 REPLIES 6

jaikishan1
ServiceNow Employee
ServiceNow Employee

Hi @AnkitS1128 ,
The advanced risk assessment is a custom component and there it is not customizable.
You can create custom elements in the scoring context slot provided on the page in the UI builder to achieve your customizations.

The validations on this component are handled using scripted rest apis. You can write your validation logic in the same.
You can review the existing APIs like "autosaveresponses", "saveFactorResponses" and write your validation logic in the similar manner.
The rest API details are provided below:
Module: Scripted Rest APIs
API name: riskasmntapi

Regards,
Jai

Please mark this as helpful if it solves your query.

Regards,
Jai

Hi @jaikishan1,

Thanks for the walk-through. But to add custom elements in the scoring context was a bit challenging. So, I was wondering how to position my custom element "Impact Rating" on the White Space Area on the Scoring Context? And also, the Impact Rating is dynamically populating based on the Computed Inherent Risk Score. So, is this logic need to be scripted through API only or is there any alternative way out? 

AnkitS1128_0-1722591558169.png

 

Hi @jaikishan1,

Thanks for the walk-through. But while trying to add the custom element named "impact rating" in the Scoring Context, the positioning was distorted. Need to position in on the white area where computed inherent risk is displaying. (See the screenshot below).

 

AnkitS1128_0-1722592012289.png

 

Also, the Impact Rating should get dynamically populated based on the inherent risk score. So, scripting logic has to be done through API only or is there any alternate way out to script this logic?

Hi ,

Thanks for the walk-through. But while trying to add the custom element named "impact rating" in the Scoring Context, the positioning was distorted. Need to position in on the white area where computed inherent risk is displaying. (See the screenshot below).

 

AnkitS1128_0-1722593552476.png

 

 

Also, the Impact Rating should get dynamically populated based on the inherent risk score. So, scripting logic has to be done through API only or is there any alternate way out to script this logic?