Populate due date on Request assessment popup

SUSMITHA KRISHN
Tera Contributor

Dear Team,

I have a requirement to modify the Request Assessment popup in the risk module. Currently, when a user clicks Assess on a risk record, a popup is displayed where they can select assessors, approvers, and specify the number of days to overdue.

My requirement is to replace the "days to overdue" field with a Due Date field, enabling users to select a specific due date for the risk assessment directly from the popup.

Please help me in understanding the ways to modify popup and add due date.

Thank you.

SUSMITHAKRISHN_0-1777863508557.png

 

1 ACCEPTED SOLUTION

MeghanaAySo
ServiceNow Employee

Hi @SUSMITHA KRISHN,

 

Here are the details of the "Request risk assessment" modal that appears when you click on "Assess" in workspace

Declarative action for it is: /sys_declarative_action_assignment.do?sys_id=52c63210776b3010c4a4b0bdbd5a99a8

It opens a UIB page called "Trigger Risk Assessment" /now/builder/ui/edit/experience/c8b8d7c543113110ec6250d556b8f29c/8ed1670543513110ec6250d556b8f26f/565a57c943113110ec6250d556b8f294

 

You can see that each of the input fields of the modal have their own input components in the UIB page.

 

MeghanaAySo_0-1777915262784.png

MeghanaAySo_1-1777915291608.png

On click of the "Request assessment" button in the modal, a client script called "Create risk assessment" is triggered which calls a scripted rest api - '/api/sn_risk_advanced/riskasmntapi/triggerRiskAssessment'
/sys_ws_operation.do?sys_id=ef00ee17b7f23010580c1a4ece11a91f
This is where the fields are set when creating risk assessment, and where you would have to modify to add additional input fields.

 

Thank you,

Meghana

 

 

View solution in original post

4 REPLIES 4

Tanushree Maiti
Kilo Patron

Hi @SUSMITHA KRISHN 

 

For your requirement  - How to modify the UI page and processing script : Step by step instruction with screen shot is given here. Follow it.

 

refer: https://www.servicenow.com/community/grc-forum/set-a-risk-assessment-due-date/td-p/3117536

 

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Thanks for the reply @Tanushree Maiti . I tried this already but the changes I made to the UI Page doesn't reflect in the workspace.

MeghanaAySo
ServiceNow Employee

Hi @SUSMITHA KRISHN,

 

Here are the details of the "Request risk assessment" modal that appears when you click on "Assess" in workspace

Declarative action for it is: /sys_declarative_action_assignment.do?sys_id=52c63210776b3010c4a4b0bdbd5a99a8

It opens a UIB page called "Trigger Risk Assessment" /now/builder/ui/edit/experience/c8b8d7c543113110ec6250d556b8f29c/8ed1670543513110ec6250d556b8f26f/565a57c943113110ec6250d556b8f294

 

You can see that each of the input fields of the modal have their own input components in the UIB page.

 

MeghanaAySo_0-1777915262784.png

MeghanaAySo_1-1777915291608.png

On click of the "Request assessment" button in the modal, a client script called "Create risk assessment" is triggered which calls a scripted rest api - '/api/sn_risk_advanced/riskasmntapi/triggerRiskAssessment'
/sys_ws_operation.do?sys_id=ef00ee17b7f23010580c1a4ece11a91f
This is where the fields are set when creating risk assessment, and where you would have to modify to add additional input fields.

 

Thank you,

Meghana

 

 

Thank you so much @MeghanaAySo. This is the clear explanation of how the popup is working.