The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Pull answers from Risk Assessment from Change Request

Cent
Tera Contributor

Hi, i got a requirement where if the Business Impact is TRUE, an approval will go to particular users.

My question is how to get the answer from the variable from the risk assessment from Change Request?

Cent_1-1758622211048.png

 

6 REPLIES 6

You can run this code from the BR of change record

var gr = new GlideRecord("asmt_assessment_instance_question");
gr.addQuery("instance.task_id", current);
gr.addQuery("metric.question","Will this change have any business impact?"); // Ensure this matches with question including white spaces
gr.query();
if(gr.next()){
  gs.info(gr.value); // This gives the value
}

Thank you,
Palani

Hi @Cent ,

 

Please do the GlideRecord on asmt_assessment_instance_question table for the current instance and get the value for the "Will this change have any business impact?" question.

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this question to solved bucket. 

 

Regards,

Prathamesh