How to correctly get new issues list via redmine API?
Added by Grigory Petrov over 12 years ago
I'm creating a small tool that will fetch new issues from our redmine repository and do some utility task on them. I'm planning the tool to run in background and to poll redmine for new issues ~ every minute. I have no problems getting all issues via "GET /issues.xml" API, but i don't know how to correctly poll NEW issues since last call. The only way i can suggest is to use "updated_on" field and get issues that has update time > last poll time. Is it correct? And if this is correct, how i can get issues with update time > specified time? The API documentation page has examples like "GET /issues.xml?project_id=2", but this is equality comparison and i need to compare if "update_time" is GREATER THAN specified time. Of course, "GET /issues.xml?update_time>'01.10.10 12:08:41'", and i suggest that it must be special syntax for comparison. Any hints on correct API request i can use?