Bitbucket : Get size of all repos in multiple projects

Looking for script/utility to generate a report of size of all repos in multiple projects. We have around 500 project and each have different number of repos.

If you want something “off the shelf” we have a built in script in ScriptRunner for Bitbucket server/DC for this purpose: https://scriptrunner.adaptavist.com/5.4.29/bitbucket/AdministrativeScripts.html#_repository_size_report

Cheers,

Reece