- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2014 01:38 PM
Hi we have a peculiar requirement. We have cmdb_ci_service as Service and also using as Business System. There is a flag in cmdb_ci_service (custom) which is a boolean field like is_service whether to false/true. False is a system and true is Service.
Now we are having problem from cmdb_ci reference fields when we have a new requirements that DO NOT show Services in Incident/Change/problem where we reference to cmdb_ci table. Requirement is to show ONLY Business Systems (is_service to false).
how do I implement it? Any thoughts?
Thanks
Sashi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2014 10:10 AM
Hi Sashi,
You can try putting this in the reference qualifier field but if this doesn't work then the script include option is the way to go. I was able to replicate this in a demo instance and there is a property that can be enabled on an instance that allows you to filter records based on extended table fields. The property is glide.ui.list.allow_extended_fields.
ref_cmdb_ci_service.u_is_active=true^EQ

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2014 10:25 PM
Hi Sashi,
You can simply add a reference qualifier on your Reference Field like is_service=false
Hope that helps.
Thanks,
Mandar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2014 09:54 AM
Well reference qualifier works on the table that you are referring to. If you look at my question, the is_service doesn't exists in parent, it exists in dependent table (cmdb_ci_service). So adding a simple condition reference qualifier doesn't change anything. CMDB just returns all rows including cmdb_ci_service where is_service is TRUE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2014 09:58 AM
reply from neetusingh in Implement
You can simply create a script include and call it as a filter on the intended reference field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2014 10:04 AM
Thanks Neetu Singh
yes, in a way that works. I tried to call an external Javascript and joined parent/child tables to get a results of what I needed. It worked. I have seen SN too implemented this way in few of their dynamic reference qualifier.
But the problem I'm getting is slowness. When I use script include and query it is taking time to load. The time is increased if number of records in cmdb_ci_service with is_service to true.
But this approach works and I have seen SNOW has same way to address such things.
Thanks
Sashi