want to populate Configuration item based on Business Service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 07:02 PM
HI All ,
Need help
I want to populate Configuration item based Business Service
We have a field named Business Service (u_business_service), and the Configuration Item field. When the business service is set to x, the configuration item field should show only those ci's that are related to x.
We do have most of CIs mapped to business services
For E.g Business Service is = Public Website
CI = Website Server xya
Website DB Server - ABC
How do this can be achieved

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 07:59 PM
Hi,
You may want to set "Use reference qualifier" to "Advanced" and use the "Reference qual" field on dictionary entry of "Configuration item" field to define the qualifying condition either directly or by calling a Script include function, where you can write the business logic.
Check the OOB "task.cmdb_ci" field for reference.
Thanks,
Arav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 08:53 PM
hi ,
is there any configuration i can do in use reference qualifier or any script i can add ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 09:56 PM
If you set "Use reference qualifier" to "Advanced", you will be able to write script in "Reference qual".
For your use case, I believe you have the relationship between "Business Service" and "Configuration Item" fields stored in a separate table.
So consider writing a script include function that will take business service as input and return the related Configuration items. You can then pass those sys ids to the Configuration item field by calling the script include function from "Reference qual" field (syntax - javascript: new <your script include name>().<your method name>(current.u_business_service).
Hope this helps.
Thanks,
Arav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2022 10:36 PM
is it possible to get steps on how to configure it ? sorry am a new service now user