How to replicate the Assess risk button on the change overview page in SOW?

Robin26
Tera Contributor

The Assess risk button only exist on the overview page of the change request. We have a requirement to make it accessible from details page too. So I thought of creating a declarative action button and place it on the header where the other buttons are. 

But for the life of me, I couldn't find where the existing configuration for the button is. I know it's not a declarative action or UI action. It's in the UI builder somewhere.

Does anyone know where I can find the config and how to reproduce it using declarative action?

3 REPLIES 3

Dan_Junqueira
Kilo Guru

Hi, @Robin26 how are you?

The Assess Risk button in Service Operations Workspace (SOW) is a little tricky to locate because it's not implemented as a traditional UI Action.

I would suggest checking the following:

  1. Navigate to Change > Workspace Configuration > Overview Card.

  2. Search for the Risk Evaluation card, usually named Chg Overview Risk SNC.

  3. Review the card configuration, including its display conditions and associated actions. This should help you understand how the existing Assess Risk functionality is triggered.

You can also check UI Builder > Page Collections > SOW - Side bar tabs top > Record Information - Change SNC, where some of the risk assessment functionality is configured.

For your requirement, I would recommend creating a separate Declarative Form Action for the change_request table and configuring it to appear in the record header.

The important part is making sure your new action invokes the existing risk assessment functionality rather than creating a separate implementation. I would inspect the events and handlers used by the original component first.

Also, pay attention to the Change state and visibility conditions, since risk assessment actions may only be available in certain stages of the Change lifecycle.

One question: Are you using the standard Service Operations Workspace or a customized Workspace? The configuration may differ slightly depending on your setup.

For reference, there's a related ServiceNow Community Discussion:
https://www.servicenow.com/community/change-management-sow-forum/view-risk-assessment-button-in-serv...

You might also find these references useful:

The first discussion should help you locate the existing Risk Evaluation component, while the other two explain how to configure Declarative Actions and event mappings in SOW.

I would start by inspecting the existing component and its event handling before creating the new button.

That way, you can reuse the standard risk assessment functionality rather than rebuilding it from scratch.

 

Hope this helps! If it points you in the right direction, please consider marking the response as Helpful or Accepted Solution, so others facing the same issue can benefit too.

Thanks!

Thanks Dan. I have researched extensively and have read all the articles out there. The UI builder is above my pay grade right now so needing a bit of help there. I was hoping someone knows where the code is exactly. 

Hi @Robin26 

I understand, and you're right. You're looking for the actual implementation behind the button, not more general documentation on UI Builder.

I found another Community discussion that might help narrow this down.

The Assess Risk functionality is referenced in the Script Include SOWChangeUtilsSNC, specifically in the getRiskActions() function.

You can find it here:

System Definition > Script Includes > SOWChangeUtilsSNC

However, there's an important distinction: this appears to handle the risk-related actions and logic, rather than the UI button and its dialog directly.

For the UI side, I would check the Chg Overview Risk SNC card under Change > Workspace Configuration > Overview Card, then inspect its associated event handlers and data resources in UI Builder.

Another useful reference is risk_evaluation_change, particularly the riskActions output, which may help trace how the component handles risk assessment actions.

Here's the Community discussion where the Script Include was identified:

Assess Risk in SOW Change Form

I haven't been able to confirm the exact client-side handler that opens the dialog, so I don't want to point you to the wrong configuration.

Hopefully, these references get you closer to the actual implementation rather than having to search through the entire UI Builder configuration.
Please consider marking the response as Helpful or Accepted Solution, if this helps you.

Thanks!