Feature #8842
closed
REST API: Filter issues created/updated before or after specific timestamp
Added by Jens Bäckman about 13 years ago.
Updated over 10 years ago.
Description
The current REST API allows for simple extraction of issue details and such things. For developing a more advanced client, keeping track of a very large Redmine issue list, it's not really enough. Yes, you can simply fetch the entire issue list, but that's barbaric and evil. So why not implement a new filter, allowing the database do all of the hard work for us?
GET /issues.xml?from=20110507T174311
I'm quite proud of this myself. Doesn't put unneeded stress on the server if an app is fetching the entire issue list every few seconds, and allows smart external tools to skip XML parsing of a huge amount of non-updated issues. The same filter could also be added to projects, versions, relations and so on. Or maybe a combined feed where you would get them all.
You can already use
GET /issues.xml?updated_on=>=2012-03-07
.
what about "issues created after", not just "updated on"?
actually, then best approach would be to retrieve "redmine server activity" with all (or some filtered) events within certain time period.
e.g. "show me what happened since Jan 1st" or "show me what happened with issues since Jan 1st. this info is crucial for Redmine-Redmine sync, which was requested by several people.
I submitted #10402 about this.
Not sure when this was added, but you can do:
/issues.xml?created_on=><2012-03-01|2012-03-07
You can already use
GET /issues.xml?updated_on=>=2012-03-07
Yes, but it doesn't accept time eg. updated_on=>=2013-11-06T19:59:05Z. And it crucial when developing, for example, synchronization functionality.
- Related to Defect #15780: Filter issues by date time (instead of only date) in REST API added
- Subject changed from REST API: Filter issues updated after specific timestamp to REST API: Filter issues created/updated before or after specific timestamp
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 2.5.0
- Resolution set to Fixed
Feature added in r12477. Using a from
parameter, you'll have to use the regular syntax with a timestamp instead of a date (see examples in Rest_Issues).
Also available in: Atom
PDF