Report with clear Last Analysis date (Using API and script)

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Version 8.9.6 (build 50800)
  • what are you trying to achieve - Pull a report with last analysis date
  • what have you tried so far to achieve this - When we filter in frontend with last analysis date that is not giving exact details.
    I was told to move my version to 9.x where this feature is addressed but unfortunately we dont have a LTS version on 9.x version.

Looking for a script to get these details:
Scripting the use of the api/projects/search and api/project_branches/list web apis.
Lopping though the project keys retrieved by using the projects/search API and using the project_branches/list for each of the project will give you the last analysis date for each branch. You then need to filter and sort those data to get what you need to get…


Hi Hari,

It’s not clear to me what you’re asking for, but the best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.