hide row in a table list

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2017 11:31 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2017 12:18 PM
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);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017 07:40 AM
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.