Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is it possible to get paginated results for the /rest/api/latest/queue endpoint?

HN May 23, 2023

I'm interested in getting paginated results from the `/rest/api/latest/queue` endpoint so I can limit the results.

Pagination is not documented in https://docs.atlassian.com/atlassian-bamboo/REST/8.2.4/#d2e3179.

An API call to the endpoint returns the desired `max-result` parameter nested within`queuedBuilds`.

{
"expand": "queuedBuilds",
"link": {
"href": "https://bamboo.com/rest/api/latest/queue",
"rel": "self"
},
"queuedBuilds": {
"size": 25,
"start-index": 0,
"max-result": 25
}

Setting `max-result` as a query parameter takes no effect. e.g:

https://bamboo.com/rest/api/latest/queue?expand=queuedBuilds.queuedBuilds&max-result=1

 

Is this not supported or documented elsewhere? 

1 answer

1 accepted

1 vote
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2023

Hello @HN,

Thanks for reporting that!

I have created a bug issue. Make sure to watch it so you will get updated once it gets moved forward in development.

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events