Forums

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

Using the Bitbucket datacenter Rest API, can I pull projects by name starts with a letter?

Richard Houde September 24, 2024

I am wanting to pull projects from Bitbucket datacenter using the Rest API and would like pull by alphabetical character like all projects that start with an A

1 answer

1 vote
Charlie Misonne
Community Champion
October 7, 2024

Hi Richard

With the project picker endpoint you can searh for projects starting with a certain letter.

Documentation

Example:

https://jira.atlassian.com/rest/api/2/projects/picker?query=b

I hope this helps!

 

Richard Houde October 7, 2024

Thank you Charlie, I will give it a whirl. 

Charlie Misonne
Community Champion
October 9, 2024

Hi Richard?

Did it work for you?

Please mark the answer as accepted to close this question if it has been resolved :-)

Richard Houde October 9, 2024

Hey Charlie. That endpoint was for Jira unfortunately and not Bitbucket so it did not work.

Charlie Misonne
Community Champion
October 9, 2024

Oh I'm so sorry. I have no idea why I thought it was about Jira.
Probably because I answered a Jira question just before :-)

Anyway: there is no way to filter for Bitbucket projects starting with a certain letter via the API.

There is an endpoint to list all projects: https://developer.atlassian.com/server/bitbucket/rest/v902/api-group-project/#api-api-latest-projects-get

It returns an alphabetical list but you need to perform your own filtering to get the projects starting with an A only.

Richard Houde October 9, 2024

All good. Thanks for the help. I appreciate it

Like Charlie Misonne likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events