The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to programmatically find BB project using revision (commits)?

Chi Dang
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!
January 8, 2024

I need to find the BitBucket projects using only SonarQube information.

I do not know the BitBucket project.

I run the below API from SonarQube using project key.

- GET batch/project

Screenshot 2024-01-08 at 11.24.21 AM.png

This API returns the revision list for BitBucket commits in the field "fileDataByPath".

Screenshot 2024-01-08 at 11.37.35 AM.png

 

How can I use the revision to find the detailed info programmatically (using the API) without knowing the project or repo slug on BitBucket server.

Using BitBucket server UI, I can enter the revision in a Search box and find it.

Thanks,

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events