Can a child incident update the parent incident

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 09:27 AM
Hello Team,
Can a child ticket update the parent ticket status upon its closer?
Child incident get closed, Parent incident state updates from new to in progress after the child incident is closed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 01:32 PM - edited 03-08-2023 01:33 PM
Hi,
Ok, I'm glad my reply was Helpful to get a bit more information from you as your latest reply has some good details 🙂
Anyways, in an "after" business rule on the incident table would have conditions like:
State changes to (Resolved? Closed?)
AND
Parent Incident isn't empty
Then in the script section you could do something like:
var gr = new GlideRecord('incident');
gr.get(current.parent_incident.toString());
gr.state = 'value_for_in_progress';
gr.update();
This is all under the assumption that you know why you're doing this, the process calls for it, etc.
Please use the above as an example and take it from there.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 10:56 PM
Hi @Community Alums ,
Many things can be done through ServiceNow as @Allen Andreas already have described. I though would not recommend according to best practice, to let a child incidents update the parent incident. Please red further in this documentation: https://docs.servicenow.com/en-US/bundle/utah-it-business-management/page/product/project-management/concept/c_Parent-ChildTaskRelationships.html
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 06:14 AM - edited 03-08-2023 06:17 AM
Hello @AndersBGS
I'm not aware of any "best practice" that says a child shouldn't update a parent record when the child is closed. Many processes within the ServiceNow platform update the parent when child tasks/records are closed so this is actually commonplace. What you linked to, in my opinion, isn't in the same context or back up what you've said?
I don't really reply to people's issues on the forums and offer suggestions that violate leading practices and what I suggested doesn't appear to cause any issues.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!