- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 03:37 AM
Hello experts,
I have an requirement to add CI class field to one form. Basically I want to create functionality so when user chose for example "Window Server" in that field, in another one which is the reference to cmdb_ci table only CIs in that class would be available. I can't manage to do it as type of class field on CI is sys_class_name. How should I approach that?
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 04:06 AM
Alright 🙂
Normally this is pretty straight forward with a Reference Qualifier, but since you are dealing with CI's is a little different. I think it would something like this for a field with a reference to the cmdb_ci table:
javascript:"super_class=" + current.<1. field name>
Take a look at the documentation here:
Especially the Advanced Reference Qualifiers Example section is interesting.
Hope it makes sense 🙂
-Mark

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 04:56 AM
Alright, so the 1. field should also be a reference field also with a Reference Qualifier on it. If the CI's you want in this list, share a common parent CI you would do something like
javascript:"super_class=" + "<sys_id of parent CI>"
Otherwise if you have a list of sys_id's, you chould do something like:
javascript:"sys_idIN" + "<sys_id>,<sys_id>,<sys_id>"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 06:05 AM
I need list of every class that can be set on CI so user can chose one class and on it's basis chose CIs that have same class as chosen one.
How to create reference field with list of all possible classes?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2022 12:44 AM
Did this solve the issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2022 05:27 AM
Yeah, sure. I mean I was asking about something different but reference qualifier was good answer. I think that I made it simpler but yeah It's working now.
Kind Regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2022 06:27 AM
Awesome! Glad you got it working!