Change - Update Cancel Change Button

ServiceNow Use6
Tera Guru

Hi,

I have a requirement. Kindly help.

Cancelling a change requires users to have all tasks closed before the change can cancel. This creates a ton of extra work on the requestor to track these down manually and have other users close them. Add a condition to the cancel button that will cancel all tasks, in addition to approvals and the change itself. Cancel change button should cancel everything.

Regards

Suman P.

1 ACCEPTED SOLUTION

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Just check if cancelling workflow will do all the things ?

var w = new Workflow();
var gr = new GlideRecord(‘wf_context’);

if (gr.get(current.context))
w.cancelContext(gr);
}
}

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post

5 REPLIES 5

Musab Rasheed
Tera Sage
Tera Sage

Hello,

If you are fine with my reply, Please mark my answer as correct and close the thread.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab