When Change Request Get Closed closed related incident

Sagar_pawar
Tera Contributor

Hello All,

I want to close the related incident on the change request form when the change request is get closed .

can anyone please guide me on this?

Thank You.

5 REPLIES 5

@Sagar_pawar 

Then write After Business rule on change request table

 

condition state changes to closed

Check advanced in script 

 

var inc = new GlideRecord(‘incident’);

inc.addQuery(‘’change_request’,current.sys_id);

inc.query();

while(inc.next()){
inc.state= 3;

inc.update();

}

this will work

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala