Create Issue record when control attestation questions is selected as not applicable

sibayanchak
Tera Contributor

During control attestation, I want issues created when a Control is "Not Applicable" in servicenow. I know OOTB it is via Business Rule and OOTB script include that creates issue record, when the question answer is selected "No" and it sets non compliant.

1 ACCEPTED SOLUTION

Thanks for the clarification.
Based on your information:

  • Search for the "GRCAssessmentUtils" Script Include 
    and the "GRCAssessmentUtilsBase" Script Include.
  • You can overwrite or extend the corresponding functions of the "GRCAssessmentUtilsBase" Script in the "GRCAssessmentUtils" Script.
  • Please note, that you should never change the "...Base" Script!
  • A few of the functions you are looking for:
    • _createAttestationIssue
    • _evaluateControl: (somewhere around line 1177 coud be interesting for you)
 


Another way that might be easier and also work fine, is to create a

new Attestation Template and define a Choice Field with "Yes" "no" "not appliccable" where you define ony "Yes" as correct answer.

Would be great if you mark the answer as helpful and correct if I could help you out.

Please mark answers (not only mine) as helpful if they were
and "accepted solutions"This motivates others to take part, post solutions and find answers. Thanks! - Mat

View solution in original post

10 REPLIES 10

Thanks for the clarification.
Based on your information:

  • Search for the "GRCAssessmentUtils" Script Include 
    and the "GRCAssessmentUtilsBase" Script Include.
  • You can overwrite or extend the corresponding functions of the "GRCAssessmentUtilsBase" Script in the "GRCAssessmentUtils" Script.
  • Please note, that you should never change the "...Base" Script!
  • A few of the functions you are looking for:
    • _createAttestationIssue
    • _evaluateControl: (somewhere around line 1177 coud be interesting for you)
 


Another way that might be easier and also work fine, is to create a

new Attestation Template and define a Choice Field with "Yes" "no" "not appliccable" where you define ony "Yes" as correct answer.

Would be great if you mark the answer as helpful and correct if I could help you out.

Please mark answers (not only mine) as helpful if they were
and "accepted solutions"This motivates others to take part, post solutions and find answers. Thanks! - Mat

I am unable to modify this script. It's read only and protected.

The script is not read only and protected if: No ACL (or else) is running against you and you are in the right application scope.
Means: If you cant work on it something blocks you, and that is usually not the case, you could even change the base script if you wanted to (DONT!).

Please mark answers (not only mine) as helpful if they were
and "accepted solutions"This motivates others to take part, post solutions and find answers. Thanks! - Mat

This one worked like a charm, thank you. 

 

new Attestation Template and define a Choice Field with "Yes" "no" "not appliccable" where you define ony "Yes" as correct answer.😊

Welcome, glad I could help

Please mark answers (not only mine) as helpful if they were
and "accepted solutions"This motivates others to take part, post solutions and find answers. Thanks! - Mat