How to reopen one Cancelled Incident back to its original state

SNOW46
Tera Contributor

Hi All,

I want to reopen one Cancelled Incident back to the original state and make all the fields editable.

It was in InProgress State and after that State was changed to Cancelled.

Can anyone suggest me how to achieve this ?

 

Thanks,

SNOW@Das

1 REPLY 1

Alikutty A
Tera Sage

You can write a background script and reopen if it is a one time purpose. You can try this out once.

var inc = new GlideRecord('incident');

inc.get('SYS_ID of Incident');

inc.state = '2';

inc.setWorkflow(false);

inc.update();