Standard Change Peer-Review

MrMK
Tera Contributor

Hi all.

 

Has anyone tried to add peer review step into the standard OOTB workflow and if yes how have you achieved this ? 

 

My steps so far have failed as I was thinking it will be as easy as adding extra step in the workflow and maybe approvals etc, but this has since not worked as think there is more to add/configure.

 

I appreciate this is not standard practice, but throwing it out here as have been asked if that is possible.

 

Any help will be welcomed 🙂

 

Thanks.

1 REPLY 1

Riya Verma
Kilo Sage
Kilo Sage

Hi @MrMK ,

 

Hope you are doing great.

 

In the workflow editor, add a new approval activity to represent the peer review step.

  1. Identify the appropriate stage for the peer review.

  2. Configure a new approval activity: Introduce a new approval activity within the identified stage. Use below script for reference:

 

var approval = new GlideRecord('sysapproval_approver');
approval.initialize();
approval.state = 'requested';
approval.sysapproval = <sysapproval record sys_id>; // Replace <sysapproval record sys_id> with the appropriate sys_id of the record being reviewed.
approval.approver = <peer reviewer sys_id>; // Replace <peer reviewer sys_id> with the sys_id of the user assigned to perform the peer review.
approval.insert();

 

  • Modify the workflow transitions: Update the transitions within the workflow to incorporate the peer review step.

 

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma