How to get the immediate previous coverage?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) 9.3
  • what are you trying to achieve - get the immediate previous coverage ?
  • what have you tried so far to achieve this - webapi = api/measures/search_history
    without passing date parameters. Not sure if sorting the result would help if there are multiple pages and immediate previous coverage is in next page.

Hi,

Welcome to the community!

The API you mentioned is the one to use. What is unsatisfactory about the response?

 
Ann

Hi thank you. I’m looking for a way to get this API response in descending order of date. Is this supported ?

Hi,

It looks like the response is in ascending order with no option to change it. You’ll just need to re-sort once you get your results.

 
Ann

Sure…Thank you for your response.