user assets

samadam
Kilo Sage

I have a requirement to pull the caller's assets as a list and also have the ability to be able to search all assets in case the caller is reporting an issue with an asset not assigned to him. i created a script include to pull the assets for the user but how do i call it to display as a list and also have a search next to it .Initially i created the field as a reference where i can search but if i want to display as list i changed it to list type. Any ideas?

1 ACCEPTED SOLUTION

The Machine
Kilo Sage

Hi Sam,



Here would be my approach to this. Use a UI macro that displays the callers assets. And then leave the configuration item field as is.



This way you can easily find the users assets and put that in the config item field without having to lock it down via reference qualifier. Like you said what if they call about an asset that's not assigned to them.



If you need more info about the UI macro look for user_related_incidents I believe. Use that as a reference, create a new UI macro and just modify that to the cmdb_ci table.



Hope that helps!



Mike Bahr


View solution in original post

7 REPLIES 7

Got it working now. Had to point it to asset table and it worked. Thanks a lot.


Now have to convince ppl to accept this solution rather than in a list in Asset field itself


Totally overlooked that but i catch the spelling error



Glad you got it to work!



Mike