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

crucible rest api fromDate and toDate format

Boris Kleynbok December 15, 2014

/rest-service/reviews-v1/filter/details?fromDate=20141210&toDate=20141215

Above does not seem like a valid date format.

What would be correct date format for Crucible Rest API to filter by date range?

 

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Boris Kleynbok December 16, 2014

Upper bound of this query does not seem to work &fromDate=1418212800000&toDate=1418385600000

Is there something I am missing since I have at lest one review created on Thu, 11 Dec 2014 15:23:14 GMT

0 votes
Maciej Swinarski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 15, 2014

Hi Boris,

You can find the docs here: 

https://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html#rest-service:reviews-v1:filter:details

 

fromDate from time in millis, inclusive.
 toDate to time in millis, exclusive.

 

mac

0 votes
TimP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 15, 2014

Hi Boris,

The toDate and fromDate are in milliseconds since epoch, so 12pm on 2014-12-10 would be 1418212800000.

cheers,

Tim

Boris Kleynbok December 16, 2014

Following query did not work: &fromDate=1418299200000&toDate=1418385600000 Where fromDate is 12/11/2014 12:00 AM and toDate is 12/12/2014 12:00 AM I have reviews created on 12/11/2014

Boris Kleynbok December 16, 2014

This did not work either &fromDate=1418212800000&toDate=1418385600000

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events