Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23695

Repostory list in project view is no longer sorted by name

XMLWordPrintable

      Issue Summary

      • A recent update has removed the default sorting by repository name when displaying repositories in a project

      Steps to Reproduce

      1. Navigate to a project

      Expected Results

      • Repositories sorted by name as it did before

      Actual Results

      • Now defaults to sorting by last updated date

      Workaround

      • By using our /2.0/repositories API - you can target individual projects (using their project key) and view the repositories associated with these, sorted by name:
        • NOTE: The below is an example to show the structure of the query URL, you will need to format the below URL as unicode (I've done so below this dot point):
          https://api.bitbucket.org/2.0/repositories/{workspaceID}?q=project.key="{KEY}"&fields=values.full_name&sort=full_name&pagelen=100
          
        • This is the cURL request command with the above URL formatted in unicode:
          curl --request GET \
            --url 'https://api.bitbucket.org/2.0/repositories/{workspaceID}?q=project.key%3D%22{KEY}%22&fields=values.full_name&sort=full_name&pagelen=100' \
            --user {username}:{AppPassword}
          

              Unassigned Unassigned
              ptrinh@atlassian.com Phil C (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: