Missing total field in Bamboo /api/plan pagination prevents determining total record count
0 reputation · 10 Jun 2021, 15:03 UTC
When querying the Bamboo REST API endpoint /api/plan to list all build plans, the response includes the fields size, limit, isLastPage and the array of plan objects, but it does not contain a total field that indicates the overall number of plans.
Without a total value, a client cannot calculate progress percentages or know when the final page has been reached without relying solely on isLastPage, which requires traversing every page to discover the end.
The documentation notes that some endpoints omit total, leaving it unclear whether an alternative method exists to obtain the count efficiently or if clients must iterate through all pages to infer it.
Is there another endpoint or query parameter that returns the total number of plans? If not, what is the recommended approach for determining the total count without fetching every page?