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

0 votes

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
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

348 views 0 8
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