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

Project Creation Date

Erik July 26, 2017

Greetings,

 

As topic name mentiones, is it possible to extract through REST or DB project creation time? We would like to monitor amount of private repositories and sort them by creation date. Thank you.

1 answer

1 accepted

1 vote
Answer accepted
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 26, 2017

Hi Erik,

is your question about Bitbucket or Bitbucket Server?

Cheers,

Christian

Premier Support Engineer

Atlassian

Erik July 27, 2017

Greetings, Christian.

 

Bitbucket Data Center hosted in AWS.

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2017

Hi Erik,

There is no way to do this via the REST API, but the following query on the database should give you this information:

SELECT p.name, pa.DATE from project p, AO_BD73C3_PROJECT_AUDIT pa WHERE p.id = pa.PROJECT_ID AND pa.ACTION='ProjectCreatedEvent'

Cheers,

Christian

Premier Support Engineer

Atlassian

Erik July 27, 2017

Thank you for example.

Erik July 27, 2017

Hmm, I'm getting followin error, despite I see this table in pgAdmin

ERROR: relation "ao_bd73c3_project_audit" does not exist

Will try to investigate myself too.

Erik July 27, 2017

solved: double quotes needed for pgAdmin. Thanks again.

Serkan Dik May 14, 2021

Surely the .../rest/api/3/project/ endpoint could easily be enhanced to return create date?

 

Infact, it should support a filter to search project by create date!!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events