How to get the list of CI's from service offering
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 08:20 AM
I want to create a reference qualifier for the incident table that if a user selects service and service offering then under configuration items I have to get all the CI's based on the service offering.
As per my understanding Business applications will be CI.
So how can I relate service offering to business applications or what is the relation between service offering and CI's?
- Labels:
-
Multiple Versions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 08:38 AM
What if you data model for know what CI's belong to the Service Offering? Do you have CI relationships setup between these?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 09:05 AM
I have created mapping like this
-
business application to application service --> runs on
-
business service to business application --> Depends on
-
service offering to application service --> contains

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 09:18 AM
This is will work best if the CI field is a reference filed. You will need to call a script include that queries the cmdb_rel_ci table where the parent is service offering and type is contains. Then you will need to return an array of sys_ids. The code for the return of the list of sys_ids would look something like this.
return "sys_idIN"+id.join();
where id is your array.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 09:22 AM
so from the above query, I will get the list of application services only.
What if I want to get a business application