CMDB Parent-Child Relationship Mapping

maxwell_kruse
Giga Contributor

Hey all. I need a little helping using the CMDB Relationship Editor. I have three custom CI classes that were all set up as parent-child. When I go into the relationship editor to add relationships I would like to filter where these CIs are a child/parent of/to these CIs. I already have the relationship mapped, but I would like to further narrow it down. I'm sure I could create the relationships via script, but would like to avoid this if possible. Does anyone know my options here?

Thanks in advance.

3 REPLIES 3

sebastian_g_snc
ServiceNow Employee
ServiceNow Employee

Hi Maxwell,

So you have Classes A, B, C.

A is parent to B is parent to C. Correct?

I hope that helps (I edited that picture, because the previous was wrong):

find_real_file.png  

Kind regards

Thanks for the response. I am already able to see the suggested relationships between the CI classes. Lets say I'm in the relationship editor for a B class CI called B01 . Using the suggested relationships I see ALL CI's of class C. What I want to see are only class C CI's that are a child of B01.  These CI records are all related via custom reference fields but an official CI relationship was never established. Is there a way to filter down to fields in CI classes in the relationship editor? What I am envisioning is, in the case of CI B01, a filter 'Class is a C' and 'C.ParentReferenceField is B01'. Maybe that's not possible

I was able to use some functions in this script include: FixPatternsModelBasic to run a background script to create the CI relationship, but it would be nice to find a solution for the end user.

 

Thanks again.

 

Hi Sebastian

I've always seen the relationship editor as a bit of a hassle and unclear of it should be a parent or child relation. But thanks to your example I now understand that the Bond Trading (Business Service) - CI, will either be a parent or a child, depending on what I select in the Suggested relationship type below - and NOT that the Bond Trading CI will connect to a CI that will be its Parent or Child.

 

Just wanted to give a shout out fot this. I my mind this the answer to the question asked.

Thank You!