Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

query to find which repos are belongs to which project in crucible .

microgenesis.swain
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2023

In our environment we have 250 projects and 780repos . 

How to know which repos are belongs to which projects .

we need a db query for this .

1 answer

0 votes
Martin Runge
Community Champion
June 30, 2026

Hi @microgenesis.swain

Welcome to the Atlassian Community!

Since this thread is a couple of years old now, did you already get this sorted? If you still need it, here is how I would approach it.

In Crucible, each project defaults to a specific repository, so what you need is a project-to-repository lookup. Instead of querying the database, something Atlassian does not support, I recommend retrieving this information directly from the REST API:

GET /rest-service/projects-v1

That returns all 250 projects, along with their key and default repository name, in a single call. You can view the data in a browser as an admin, or use curl piped through jq to get a clean table.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events