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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

New workspaces api 2.0 not returning all workspaces

Hi,

I have been trying to use the new workspace api to list all workspaces the user has access to as a member.

I tried using https://api.bitbucket.org/2.0/workspaces?permission = "member" which returns 4 workspaces for my account.

However when i use the same account and login to web and go to "All workspaces" located at https://bitbucket.org/account/workspaces/ i can see 9 workspaces (3 of which i am admin and 1 as collaborator, remaining 5 are workspaces that im seeing as i have access to some of the repositories within these workspaces) 

I tried using another api which returns the same 4 results https://api.bitbucket.org/2.0/user/permissions/workspaces/?q=permission="member"

Can u please direct me to the correct param value or api to use to retrieve all 9 workspaces as a member?

Thanks 

1 answer

0 votes
Tyler T Atlassian Team Jul 01, 2020

To get all workspaces, try this workspaces endpoint without the permission filter.

https://api.bitbucket.org/2.0/workspaces

I tried without filters and still get the same 4 results. Not the 9 that shows up on the web page.

Would it be because im not really part of the workspace, but have write access to a few repos within the missing workspace? Still im trying to find a way to replicate bitbucket page and list all workspaces.

This issue is not specific to my account. I built an app and lots of users have complained that they are not able to view their workspaces. This is the app https://play.google.com/store/apps/details?id=com.lh.gitapp.bitbucket&hl=en

Thanks

Can confirm! I'm experiencing the same issue with the workspaces API.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,849 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you