简体   繁体   中英

How to get a report for projects created in last 6 months for sonarqube?

I didn't find any api query to get the projects list with the project creation date(not last analysys date).

GET api/projects/search

The above query giving only project names but without creation date.

How to get the report for this? I tried running sql query on postgres database directly but there last analysis date also showing as created_at date and getting multiple records for same project.

On the official documentation there is the following parameter:

analyzedBefore

Filter the projects for which the last analysis of all branches are older than the given date (exclusive) . Either a date (server timezone) or datetime can be provided.

I hope that you can somehow connect projects with branch creation dates and with that create a report. Otherwise, I can't see an option for searching by project creation dates (at least on the official documentation).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM