Limit the auxiliary options such as "Request to Change CIR Requestor"
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2m ago
Hi Team,
My requirement is Limit the auxiliary options such as "Request to Change CIR Requestor", to active state or till Production Readiness state should not be available in the Closed complete/Incomplete state of a CIR.
I have Written script include code , these code is working showing all state but I want to restrict Closed complete/Incomplete state of a CIR.
Request to Change CIR Requestor: Script Include code
canChangeRequestor: function(cir_id) {
var gr = new GlideRecord("u_cloud_intake_request");
if (gr.get(cir_id)) {
if (gr.state == "110" || gr.state == "90" || gr.state == "101" || gr.state == "100" || gr.state == "1") {
if (gs.hasRole('u_cloud_intake_admin')) return true;
if (gs.hasRole('u_cloud_intake_analyst')) return true;
if (gr.sys_created_by == gs.getUserName()) return true;
if (gs.getUserID() == gr.getValue('opened_by')) return true;
if (gr.getValue('watch_list') && gr.getValue('watch_list').indexOf(gs.getUserID()) > -1) return true;
} else {
return false;
}
}
return false;
},
Note : Request to Change CIR Requestor is " Record Producer"
Help me to update the code
Thanks .
0 REPLIES 0
