Greetings all.
I found this script around here a few months ago but I seem to be having some issues. I am not sure if its the script or something else.
I created a dashboard item that was entirely related to showing items that get the tag "No Asset Group".
The "No Asset Group" tag has the below script
if(asset.getAssetType()!=Asset.AssetType.HOST) return false;
return asset.tags.reservedType.findAll { it.toString().equals("ASSET_GROUP") }.size() < 1;
I have a bunch of assets in an Asset Group showing up in this tag...and I must be missing something.
Any ideas?
Might open a support ticket to see if the TAG Index needs to be restarted on your subscription. Sometimes it will get stuck. You can also edit the tag and select evaluate on save and see if that addresses the issue.
Based on the documentation I see nothing wrong with the code.
David