Bamboo rest api: Result range does not work

Fernandel Toto June 11, 2017

Hi,

I hit this endpoint expecting the last two results:

curl --user myuser:secret -g http://localhost:8085/rest/api/latest/result.json?expand=results[0:2].result

I get only one (latest) result.

I have 3 dozen results in this plan. Please let me know what I am missing.

Thank you.

1 answer

1 accepted

2 votes
Answer accepted
m93 June 11, 2017

Try this one:

/result/{projectKey}-{buildKey}/{buildNumber:([0-9]+)|(latest)}?expand&favourite&start-index&max-results 
/rest/api/latest/result/{projectKey}-{buildKey}.json?max-result=2

 

Fernandel Toto June 12, 2017

Thank you. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events