Need to set child incident state automatically when parent incident state updated..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 07:45 AM
Hello Team,
I am updating child incident state value when parent incident state updated, i created After BR with Update action, my script is working as expected till state changes to Open, WIP, onHold. but if i change parent inc state to Resolved the child inc state is still in onHold state and asking onHold reason..? How to fix this issue..? any help would be appreciated..?
Parent incident
child Incident
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 11:03 PM
Hi @Jaya Chandra Re ,
Have you looked at the OOTB synchronization between state for parent/child incidents: https://docs.servicenow.com/bundle/washingtondc-it-service-management/page/product/incident-manageme...
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
05-07-2024 11:37 PM
Hi @Jaya Chandra Re,
You can before business rule with below code:
current.incident_state = current.parent_incident.incident_state;
current.state = current.parent_incident.state;
current.hold_reason = current.parent_incident.hold_reason;
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thanks
Jitendra