Which script moves control from attest to review

Arkesh Kumar
Giga Guru

Which script moves control from attest to review

3 REPLIES 3

Community Alums
Not applicable

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 :

SandeepDutta_0-1675827323546.png

 

Arkesh Kumar
Giga Guru

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

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. 

Lana3_0-1675961579977.png

 

Let me know if this was of help! 🙂

Good day,

Lana