Parent_ Child

qwerty_123
Kilo Contributor

If Incident is associated with a Parent Incident, then all fields on child incidents should be read only and following update should flow from Parent to child -
Additional Comments
Work Notes
Status & On-hold
Reason (if goes on hold)

3 REPLIES 3

Ravi Peddineni
Kilo Sage

@qwerty_123 

 

This can be achieved in multiple ways. Below are some components you can make use of:

For child incident (If an incident has parent attached):

  • Use an ACL to prevent the write updates on the child incident. You can add a condition that says parent != "". This way only admins will have access to update in case of emergency.
  • If you want to restrict it on UI, use an UI policy where the condition says parent != "" and add all the fields. you want blocked from updating. 
  • If you want to block the updates also from 3rd party apps to incident if the parent is added, You can use Data Policy in conjunction with UI policy.

I suggest using ACL since it resctricts updates from all points of data updates. I know it is mainly used for user access and not the conditional logic but in this case the ACL makes more sense.

 

Now on the parent incident (Incident that has child incidents): 

  • Create an update Business Rule with conditions where one of the fields is updated and it should check if there are any child incidents attached to it. If there are, you can get the updated value and add or update the child incidents. 
  • The other no code way is to use Flow Designer and follow the same rules mentioned for Business Rule.

I suggest going with Flow Designer if possible as it is the easiest way to achieve this.

 

Lemme know if you face any issues in doing so.

Ankur Bawiskar
Tera Patron
Tera Patron

@qwerty_123 

so what did you start with and where are you stuck?

you can use onLoad client script and see if this is a child incident of some parent, if yes then make all fields read-only

you can use after update business rule on parent table to update the fields from parent to child

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@qwerty_123 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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