Which script moves control from attest to review
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2023 09:21 AM
Which script moves control from attest to review

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2023 07:52 PM
Hi @Arkesh Kumar ,
There is a UI action called "Submit for review" which moves the control from attest to review.
This is the condition and script :
Condition : gs.hasRole('sn_compliance.user') && current.state == 'attest' && current.attestation.nil()
Script:
current.state = 'review';
current.update();
action.setRedirectURL(current);
See below :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2023 09:14 PM
Hi @Community Alums,
Issue here is when control have one attestation responder. and he completes, system automatically move control to review state where as if control have multiple attestation responder, even all users completed, it wont move control state to review.
so I need to how which script is moving control to review state when attestation responder is one.
Thank you,
Arkesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2023 08:53 AM
Hi Arkesh,
There is a BR: Update item when assessment complete which runs when the assessment is completed. In here the function: evaluateAssessmentResult is triggered within Script Include: GRCAssessmentUtilsBase
Within that function it determines if the assessment was for a Risk or a Control. Then if it's source: control, it will trigger another function in the script include, called: _evaluateControl.
In there you can see that the control is being set to Review state.
Let me know if this was of help! 🙂
Good day,
Lana