Standard Change Peer-Review
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 07:08 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 07:42 AM
Hi @MrMK ,
Hope you are doing great.
In the workflow editor, add a new approval activity to represent the peer review step.
Identify the appropriate stage for the peer review.
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.
Regards,
Riya Verma