[Projects | Size] Problem displaying the number of projects in relation to the defined size.

Affected version: 12.X and before

Observed behaviour

If several milestones are associated with the same project, the size parameter in the API request /api/rest/latest/projects?page=0&size=20 does not return the correct number of results.

Projects may be ignored.

image.png

-> In this example, I have 20 projects on my instance, but only 19 are returned

Steps to reproduce

  • Have projects on your instance
  • Create at least two milestones and link them to at least one project
  • Using the API request above, set a size just below the total number of projects on the instance

Expected result

All projects organised by ID must be returned, in accordance with the defined size.

Assignee Loading
Time tracking Loading