Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-8378

Ability to get repository creation date via REST API

    XMLWordPrintable

Details

    • 21
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      The suggestion is to retrieve the repository creation date in some function from the REST API.
      This date can be currently seen in the database, in the table AO_BD73C3_REPOSITORY_AUDIT. The following query returns the creation date for a given repository in a given project:

      select ra.DATE from AO_BD73C3_REPOSITORY_AUDIT ra
      join repository r on r.id = ra.repository_id
      join project p on p.id = r.project_id
      where ra.ACTION like 'RepositoryCreatedEvent'
      and r.slug like '<repo_slug>'
      and p.project_key like '<project_key>'
      

      In the query above, replace <repo_slug> by the corresponding repository slug of the repository for which you want to check the creation date, and <project_key> by the project key under which this repository was created.

      Attachments

        Activity

          People

            Unassigned Unassigned
            grefosco Gustavo Refosco (Inactive)
            Votes:
            19 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated: