Undoing a change cancel

SNOW Man1
Kilo Explorer

Can I revert a cancelled change request to a previous status ? Anyone Snow admin or developer can do that ?

 

Thank You

6 REPLIES 6

SanjivMeher
Kilo Patron
Kilo Patron

ServiceNow Admins should be able to do that. But you workflow will already be cancelled. Best practice in such cases is to create a new Change with the same details


Please mark this response as correct or helpful if it assisted you with your question.

Thank You !!

Appreciate your reply !!

 

 

scott barnard1
Kilo Sage

You could create a ui action to revert to New state

 

revertToNew(current);
action.setRedirectURL(current);

function revertToNew(changeRequestGr) {
var changeRequest = new ChangeRequest(changeRequestGr);
if (!changeRequest.revertToNew())
gs.addErrorMessage(gs.getMessage('State Model for {0} changes does not allow reverting change from {1} state', [changeRequest.getValue('type'), changeRequest.getDisplayValue('state')]));
}

 

 

Just be careful of the condition you apply to it.

Personally if it's been cancelled I don't want it coming back, either copy the change or create a new one. However this will do it

Thank You !!

Appreciate your reply !!