CI Relationship Editor - Filter CI

lars_rottmann
Tera Contributor

hello,

i want to change the filter for the shown CI.

So for the class there was no Problem, if we use a the relationtype "uses (parent) we only get the Ci's from the Class Business Service.

But further i want to limit the list of the business Service (cmdb_ci_service).

I just want to show the ci from this table which has the value "Tecnical Service" in the field "service_classification".

Attached you can see which filter i want to set by default.

I tried this by setting the "ci_manage_relationships_filter_hint.cmdb_ci"   User Preference.

I tried diffrent Values for example -> cmdb_ci_service.service_classification="Technical Service"

and some other variants - but nothing works.

Even if i delete this value i got the same dafault filter than before.

has anybody a idea why it dosn't work ??

many thanks for any comment.

2017-08-01 19_37_57-BEAT DEVSYSTEM.png

3 REPLIES 3

Stefan Baldhof1
Kilo Guru

Hi Lars,



as we're currently struggling with similar requirements I came across some hints during my research on this question.



After changing the "ci_manage_relationships_filter_hint.cmdb_ci" Preference you have to log out of the instance and back in for the changes to take effect.



Then it seems that you have to ensure that the field you want to add a condition for also resides on "cmdb_ci". I'm not completely sure on this detail as we're still experimenting with this     We've also tried to add new preferences for other CI classes, which has no effect.



Regards,


Stefan


cbender
Tera Contributor

Hello Lars,



we have the same problem and we found the following:



It was only possible to set the global default filter by changing the User Preference: ci_manage_relationships_filter_hint.cmdb_ci


All fields had to be available on the cmdb_ci table.


To see the changes you have to logout and login again.



Maybe somebody else has some more information?



Kind Regards,


Christiane


To set CI relationships cmdb custom view default to all the users, you may need to create a ecmdb.ciview as below:

System : true
Value : Sys_id of cmdb view
User : empty