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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

68 views 0 11
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