Crucible REST API filter fromDate & toDate

/rest-service/reviews-v1/filter?fromDate=<value>&toDate=<value>

What is the meaning of fromDate and of toDate?

Can someone provide a definition?  The official online document says nothing about it. Thx.

(I understand the time is in unix time (milliseconds) )


Assume this notation: time t1 < time t2 < time t3, ...

Take this simple example, if a review CR-ABC-3 is created at time  t5, summarized and closed at time t10.

If I specify (fromDate=t1, toDate=t7), shall I expect to find the review?

How about (fromDate=t7, toDate=t9)?

How about (fromDate=t7, todate=t11)?

How about (fromDate=t11, toDate=t15)


Thanks,

Wei

1 answer

This widget could not be displayed.

Hi @Wei-Hwan Chiang,

Apologies for the confusion, the same issue was recently identified on https://jira.atlassian.com/browse/CRUC-6941 issue.  The documentation will be clarified in the upcoming 3.7 release.   

Basically both dates as you guessed represent unix time expressed in milliseconds.  They are compared against the last activity on the review.   In your case as the review was last updated at time t10, you should expect this review to be returned when filter (fromDate=t7, toDate=t11) is specified.

Hope that helps,
Piotr 

Hi Piotr, thx for the clarification! Wei

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

148 views 0 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you