Automated Risk Assessment via Script Always Results in 'Low' Risk Level

gautam_dhamija
Tera Contributor

Hello Community,

I'm implementing automated risk assessments for Change Requests using a script. The script successfully creates and completes the assessment, populating the necessary records in the following tables:ServiceNow

  • asmt_assessment

  • asmt_assessment_instance

  • asmt_metric_result

  • asmt_assessment_instance_question

Despite this, the Risk field on the Change Request consistently reflects a 'Low' value, regardless of the assessment responses

I've ensured that:

  • The assessment instance is marked as 'complete'.

  • All metric results are correctly recorded.

  • The 'Change Management - Risk Assessment' plugin is active.

I suspect that the risk calculation isn't being triggered automatically after the assessment completion. Is there a specific method or function I need to invoke to ensure the Risk field updates based on the assessment?

3 REPLIES 3

J Siva
Tera Sage

Hi @gautam_dhamija 
Have you verified if the 'Assessment threshold' values have been set up properly?
Regards,
Siva

Yes Assessment threshold values have have been setup ....It is working fine  when i do at form level but not through script

 

I am facing the same issue. Did you find solution?