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

sibayanchak
Tera Contributor

Exactly how "No" -> Non-compliant works and we expect issue to be created for "Not applicable" -> Non-compliant