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

Crucible REST API : How to make paged request to reviews-v1/details

Ruslan Arhipov August 27, 2015

I'm trying to HTTP GET a paged result set from reviews-v1/details using the following url:

https://<HOST>:<PORT>/rest-service/reviews-v1/filter/details?states=Review&limit=10&FEAUTH=<AUTH_TOKEN>

I tried to provide both application/xml and application/json as Accept HTTP header, but I still get the whole collection. The docs here state the existence of Paged API, and do not state that reviews-v1/details endpoint does not support paging.

Our Crucible version is 3.7.0.

Hopefully that's enough info.

EDIT:

I cannot get this working on an Atlassian FishEye installation either, see https://fisheye2.atlassian.com/rest-service/reviews-v1/details/?state=Closed&limit=3 - it has limit set to 3, but returns 11 detailedReviewData instances. 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Ruslan Arhipov September 16, 2015

The best way of doing this that I came up with is to use the /rest-service/reviews-v1/filter/details endpoint with fromDate and toDate parameters. One needs to find the last activity date of the first review and then iterate by incrementing above mentioned parameters (I used date += "1 day" increment).

TAGS
AUG Leaders

Atlassian Community Events