Is there a way to add multiple child incidents to a parent incident at the same time?

steveturley2
Giga Expert

As the title says, can I add child incidents to a parent incident in bulk?

Thanks!

1 ACCEPTED SOLUTION

@steveturley 

As an admin I am able to view the Edit button.

Please check whether edit button is disabled

1) configure list control

2) check Omit edit button checkbox is true or false

3) Or check any script in Omit edit condition is returning false

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Steve,

2 approaches

1) From script - this is possible; you can iterate over the child incidents and set the parent field with the incident you want

Sample Script below

var arr = ['INC001', 'INC002', 'INC003'];

var gr = new GlideRecord('incident');
gr.addQuery('number', 'IN', arr);
gr.query();
while(gr.next()){

gr.parent_incident = 'SYS_ID' ; // give parent incident sys_id here
gr.update();

}

2) From UI also it is possible

1) See the related list of "Child Incidents"

2) Click "Edit"

3) Select the incidents which should be child of current incident

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

steveturley2
Giga Expert

Thanks for the reply. I do not have the 'edit' (or 'new') buttons on my related list of Child Incidents. I have the System Admin role.

@steveturley 

As an admin I am able to view the Edit button.

Please check whether edit button is disabled

1) configure list control

2) check Omit edit button checkbox is true or false

3) Or check any script in Omit edit condition is returning false

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

That got it. Thanks!