Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I use the UUID of a repository to find the URL?

Jackson Jenkins
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!
May 8, 2023

I'd like to have a unique identifier for each repository and want to avoid assigning each one a part number. Is there a way to get to the repository given the UUID? Is there a way to find the URL for the repository given the UUID?

3 answers

3 accepted

1 vote
Answer accepted
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 2023

Hi all,
I just wrote this article to try to clarify this topic for the future:

Working with UUIDs and their curly brackets, workspace names or repository slugs in Bitbucket 

 

Let me know if you have any feedback,

Caterina

0 votes
Answer accepted
Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 9, 2023

Hi Jackson, 

welcome to the community!

You can use the Bitbucket cloud repository REST API endpoint 

https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-get

to fetch repository details, including the uuid (with the curly brackets).

You can then access the repository via the uuid (including the curly brackets)

For example https://bitbucket.org/<workspace>/{3ccc67c9-2251-4216-bdce-5400cd864026}/

Hope that helps, let me know how you go.

Best, Ulrich

// Izymes

0 votes
Answer accepted
Jackson Jenkins
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!
May 9, 2023

After some searching I found you can use the link bitbucket.org/workspace/{UUID} to go to the repository. It is important to include the curly braces.

Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 9, 2023

Great!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events