Is it possible to reopen a completed demand?

christinerummel
Kilo Contributor

A colleague accidentally moved a demand from approved to completed (SN was slow, so she accidentally clicked the approve button twice, which inadvertently moved the demand to completed.)  By her doing this, the project was not created.

Any thoughts? I'm assuming I either have to delete the demand and recreate it somehow (not sure how that would work since it was created off of the idea), or manually create the project separately and not have them linked together.

We are using Kingston.

Thanks--

Christine

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

Your admin, developer can run one time fix script to reopen demand.

Use below to re-open demand

 

var dmn = new GlideRecord('dmn_demand');
dmn.addQuery('sys_id',"3b040317534113004e77ddeeff7b1279"); // update sys_id of demand record as per your instance
dmn.query();
while(dmn.next()){


dmn.state = "1";
dmn.setWorkflow(false);
dmn.update();

}

 

Regards,

Sachin

View solution in original post

2 REPLIES 2

sachin_namjoshi
Kilo Patron
Kilo Patron

Your admin, developer can run one time fix script to reopen demand.

Use below to re-open demand

 

var dmn = new GlideRecord('dmn_demand');
dmn.addQuery('sys_id',"3b040317534113004e77ddeeff7b1279"); // update sys_id of demand record as per your instance
dmn.query();
while(dmn.next()){


dmn.state = "1";
dmn.setWorkflow(false);
dmn.update();

}

 

Regards,

Sachin

Thank you. We will give it a try!