want to populate Configuration item based on Business Service

karan15
Tera Contributor

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

4 REPLIES 4

Arav
Tera Guru
Tera Guru

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

karan15
Tera Contributor

hi , 

 

is there any configuration i can do in use reference qualifier or any script i can add ?

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

karan15
Tera Contributor

is it possible to get steps on how to configure it ? sorry am a new service now user