Limit the auxiliary options such as "Request to Change CIR Requestor"
New article articles in ServiceNow Community
·
Feb 16, 2026
·
article
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") { // Prod state value (110)
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;
},
Close Complete state value : 3 , Incomplete state value :8
Note : Request to Change CIR Requestor is " Record Producer"
Please help me to Update the code
Thanks .
https://www.servicenow.com/community/developer-forum/limit-the-auxiliary-options-such-as-quot-request-to-change-cir/m-p/3490033#M1247583