Feature #13275
openAdd query parameters/filter for listing time entries via REST API
Description
Currently it appears that the only way to retrieve time entries with the REST API is to either list all time entries or request them one at a time by ID. At least, that is all that is documented (http://www.redmine.org/projects/redmine/wiki/Rest_TimeEntries).
This is of very limited usefulness given that an instance may easily contain thousands upon thousands of time entries. It would be very helpful to be able to query by certain conditions or in other words filter.
Primary candidates for filter conditions would be:- Updated date
- Created date
- ID number
- User
- Project
- Issue
- Activity
- Combinations of the above
Conditions would need to support ranges.
Hypothetical examples:
- GET /time_entries.xml?user=X
- GET /time_entries.xml?issue=X
- GET /time_entries.xml?updated_on=>=2013-02-24
- GET /time_entries.xml?id=><100|200
Priority wise I believe the queries by ID and updated date are the most important because those would at least make it possible to check for recent updates or new entries after some starting point, which is crucial functionality for many integrations.
Also refer to http://www.redmine.org/boards/1/topics/29631
Files