I would like to hide one class of config items on Incident form

billcravey
Kilo Contributor

When our Service Desk members are creating a new Incident and select the Configuration Item field, I would like to hide the "Epic Ini" class from them in order to reduce the number of unnecessary returns that they see. I am trying to make this work with an ACL but can't seem to get it.

Thank you

1 ACCEPTED SOLUTION

Hi Bill,



That makes more sense! A picture is worth a thousand words. It looks like someone tried hard coding in a static reference qualifier at one point (all the other text.) You wanted to do it dynamically with a script. Use either or. The objective is to tell the lookup "Hey, this is additional query information you'll want to know". That script looks a bit of a mess and tricky to maintain. Replace it with just the single line:



javascript:hideMyCiClass();



give it another test. Of course, copy all that text somewhere in case you need to put it back at some point! 🙂


View solution in original post

17 REPLIES 17

The reference qualifier that was already in place.


Hi Bill,



I seem to be getting more and more lost in the thread. I need to do a reset, if you pardon. You wanted a way to restricted the CI classes available in the Configuration Item based on the current user's role. The solution to that is to use a dictionary override which specifics and advanced reference qualifier. The script returns a query string such as "sys_class_name!=cmdb_ci_server" so the list of CIs is pre-filtered.



Can you tell me what is/not working? Were the referenced materials any help?



Sorry about the "reset".


No problem, Chuck. I apologize for not being clear. I built the script include as described but substituted cmdb_ci_epic_ini' for cmdb_ci_server'.


I then went to the incident form and did a configure dictionary on the Configuration Item field. I completed that piece as described and received the error in the first screen shot I sent you. Prior to sending that I tried inserting javascript:hideMyCiClass(); into the already existing reference qualifier (which was your next suggestion) which is that real long one above. I tried inserting it at the top, tested, removed from top and added to the bottom and tested. In either case when I impersonated a member of the Service Desk, I still could see the CIs that I wanted to hide.


And by "inserted at the top" are you referring to the reference qualifier field on the task table (cmdb_ci field)? and "bottom" referring to the dictionary override?


Both in the same place but at the top and bottom (one at a time prior to testing) of the existing text in the reference qualifier field after selecting the already existing dictionary override on the Incident Table & cmdb_ci Column Name. I inserted where the blue scribbling is in the screen shot.Capture.PNG