Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Change request should be Auto closed when Changed task is closed

Not applicable

Change request should be Auto closed when Changed task is closed

6 REPLIES 6

Rahul Kumar Sh1
Tera Contributor

Hi, Yes this is an out of the box functionality, for you if it not working please check associated workflow

 

viswak
Tera Contributor

why my code not working  for Change request should be Auto closed when Changed task is closed

 

var inc = new GlideRecord('change_task');
inc.addQuery('change_request',current.sys_id);
inc.query();
if(inc.next()){
inc.state = 3;
inc.update();
current.setAbortAction(true);
}