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
Kilo Patron

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

View solution in original post

5 REPLIES 5

Musab Rasheed
Kilo Patron

Hello,

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

Regards