How to obtain the total count of linked repositories present in Bamboo Data Center.

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

The steps outlined on this article are provided AS-IS. This means we've had reports of them working for some customers — under certain circumstances — yet are not officially supported, nor can we guarantee they'll work for your specific scenario.

You may follow through and validate them on your own non-prod environments prior to production or fall back to supported alternatives if they don't work out.

We also invite you to reach out to our Community for matters that fall beyond Atlassian's scope of support!

The following SQL queries will help you obtain a list of linked repositories (global ones) in Bamboo DC from the Database. The list is present in the UI(Bamboo Administration→Linked Repositories)

(Auto-migrated image: description temporarily unavailable)

Environment

The solution has been tested on Bamboo 9.6.0 DC with Postgres SQL DB and Microsoft SQL server , but it is applicable for other supported Bamvoo version as well.

Solution

Total count of Linked repositories from the Bamboo DB.

PostgreSQL

PostgreSQL

1 SELECT DISTINCT count(*) FROM VCS_LOCATION VL WHERE VL.IS_GLOBAL = true AND VL.MARKED_FOR_DELETION = false AND VL.PARENT_ID IS NULL;

Microsoft SQL Server

Microsoft SQL Server

1 SELECT DISTINCT count(*) FROM VCS_LOCATION VL WHERE VL.IS_GLOBAL = 1 AND VL.MARKED_FOR_DELETION = 0 AND VL.PARENT_ID IS NULL;

Note

If you're using a different Database Management System (DBMS), you will have to convert the query mentioned above into the syntax specific to your DBMS.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.