The CreatorCon Call for Content is officially open! Get started here.

Parent incident should not be resolved when child incident is in open state

Tulasiram1
Kilo Guru

Parent incident should not be resolved when child incident is in open state

1 ACCEPTED SOLUTION

Good Catch!! @Sonam_Tiwari 

 

Please try to update the script as below:

Also your BR should be before update

 

var gr = new GlideRecord('incident');

  gr.addQuery('active',true);

  gr.addQuery('parent_incident',current.sys_id);

  gr.query();

  if(gr.next())

  {

 current.setAbortAction(true);
gs.addInfoMessage("Please close all the child incidents first and try again!!");

  }

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

 

View solution in original post

11 REPLIES 11

Tulasiram1_0-1701069822435.png

 

Tulasiram1
Kilo Guru

Tulasiram1_1-1701069106711.png