The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Change request should be Auto closed when Changed task is closed

viswav
Giga Contributor

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);
}