We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Change rejected at Authorize state incident work notes must get updated

Sakshi Lambat
Tera Contributor

I want the change request to move to scheduled after being authorized. -If rejected at the authorize state then the feature is closed and updates the work notes of the parent incident.

1 REPLY 1

Harish KM
Kilo Patron

Hi @Sakshi Lambat you can use the below script in workflow or Business rule with condition approval rejected

script:

var grinc = new GlideRecord("incident");
grinc.addActiveQuery();
grinc.addQuery("rfc", current.sys_id); // gets current change request sysID and must match changerequest(rfc) field on Incident table
grinc.addNotNullQuery("rfc");
grinc.query();
while(grinc.next()){
grinc.work_notes = current.work_notes.getJournalEntry(1); // copy latest worknotes to incident
    grinc.update();
}
Regards
Harish