Project

General

Profile

REST API: Filter issues according to date

Added by Markus Korber about 12 years ago

Hi,

is it somehow possible to request all tickets between a start and end date via the REST API without fetching the entire issue list and doing the filtering manually afterwards?

Thanks!


Replies (6)

RE: REST API: Filter issues according to date - Added by Markus Korber about 12 years ago

Thanks. Do you know where I can find this in the documentation?
Nevertheless, this doesn't really work:

http://www.redmine.org/issues.xml?created_on=>=2012-03-01&created_on=<=2012-03-01
returns far too many issues. It seems that Redmine uses only the last "created_on" filter and not both.

RE: REST API: Filter issues according to date - Added by Andrey Grechin about 12 years ago

hmmm... there are really too many results)

Do you know where I can find this in the documentation?

No, i learned this at random...

RE: REST API: Filter issues according to date - Added by Jeffrey Clark almost 12 years ago

Try this:

/issues.xml?created_on=><2012-03-01|2012-03-01

RE: REST API: Filter issues according to date - Added by Brad Jones almost 10 years ago

This also appears to work:

/time_entries.xml?period=current_month

And the like, based on the filters available in the web (HTML) UI.

RE: REST API: Filter issues according to date - Added by Sergei Babski over 5 years ago

some more examples

start_date >= 2018-10-01

/issues.json?start_date=>=2018-10-01

start_date <= 2018-10-01

/issues.json?start_date=<=2018-10-01

start_date between 2018-10-01 and 2018-10-30

/issues.json?start_date=<>2018-10-01|2018-10-30

tested on redmine 3.4.4.stable

    (1-6/6)