hide row in a table list

Brian Lancaster
Tera Sage

We are working on making it so that all users can see the application in the CMDB in a List just like if you went to configuration > Applications for ITIL users.   I have been asked if there is a way to hide an application from the list view if IT Owner (one of the fields) is empty.   Does anybody know if this is possible and how I could go about doing it?

11 REPLIES 11

Never mind I was over thinking it.   Just needed to add


current.addQuery('u_it_owenr', '!=', '');


current.addQuery('u_business_owner', '!=', '');


current.addQuery('u_it_app', '!=', true);


So I created the role non-it_itil but for some reason on all admin accounts gs.hasRole('non-it_itil') returns true.   Any thoughts on why this is happening with account that have admin role only?   My script is working for for user who just have the itil role, non-it_itil and no roles but for users who have the admin role it seems to think they also have the non-it_itil role.