Automated Scripted Factor for Non-Compliant Controls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2024 06:55 PM
I have created a group factor to assess individual controls on a risk assessment. The group factor contains a manual factor (manual selection of control effectiveness) and an automated scripted factor (to check if the associated control is non-compliant). The score is then averaged to output the control effectiveness score.
It is my understanding that the control sys_id should be predefined in the script's control variable (see attached screenshot), however the variable is null. Any idea how I can retrieve the associated control sys_ID so that the script can check the sn_compliance_control table for the control status? Or is there a better way I should be handling this?
Draft script so far (not working):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 01:00 AM
Hi @Trey7 ,
Based on the screenshot provided. the control sys id is stored in the variable "control". You can use this directly in your query instead of current.control.
current line = "controlGR.addQuery('sys_id', current.control);"
updated line = "controlGR.addQuery('sys_id', control);"
Regards,
Jai
Regards,
Jai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 07:45 AM
Tried that as well, but it is the same result. control is null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 08:53 AM
It should not be null. Please review the following:
1. RAM configuration to verify that the factor is mapped to the correct assessment(control) and published.
2. Verify the assessment if controls are properly associated and are being assessed.
Regards,
Jai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 01:44 PM
Confirmed both of those are true. Does it have anything to do with the automated scripted factor being within a group factor?