Skip to main content
System StatusContact Support
VersionOne Community

Query for recent updates

What

I would like to find all the stories that have been updated in the last 10 days. How can I query for this data?

How

Solution: Use query.v1 to report on Stories

This endpoint was introduced in 13.2, Summer 2013. Please check Support Center -> About to see if you are on this release or later.

The following uses the query.v1 endpoint to obtain Story that were modified after a specific date. The same can be accomplished using the rest-1.v1/Data or rest-1.oauth.v1/Data endpoints.

Getting Started

Query

For this solution, we use Story as the from parameter. We select for Name and Number. In addition, we have ChangeDate to confirm the filter. The filter parameter restricts the set to those after the specified date. The query syntax does not have a way to ask for today - 10 days so that should be computed on the client side as part of constructing the query.

from: Story
select:
  - Name
  ​- Number
  ​- ChangeDate
filter:
  - ChangeDate>'2013-12-01T00:00:00.0000000Z'

In order to execute the query, submit an HTTP POST with the query as the body to query.v1.

  • Was this article helpful?