Need to set child incident state automatically when parent incident state updated..

Jaya Chandra Re
Tera Contributor

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

JayaChandraRe_1-1715093019162.png

 

child Incident

JayaChandraRe_0-1715092945191.png

 

 

2 REPLIES 2

AndersBGS
Tera Patron
Tera Patron

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/

Jitendra Diwak1
Kilo Sage

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

Please accept my solution if it works for and thumps up.