{% set r = namespace() %} {% set r.latest = "0.0.0" %} {% for release in _nextcloud_platforms.json %} {% if release.version is version(r.latest , operator='gt') and not release.isSupported and release.hasRelease %} {% set r.latest = release.version %} {% endif %} {% endfor %} {{r.latest|to_json}}