Patch #4502

Query date filters by months (prev, this, next)

Added by Andrew Chaika about 9 years ago. Updated 5 days ago.

Status:NewStart date:2009-12-29
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues filter
Target version:4.1.0

Description

For my work there is need to have a plan for the next month and report for the last. I have implemented this in Redmine by using additional filter options on date fields - last month, next month, this month. Patch attached.
Maybe we can integrate this functionality into the trunk?

query_months_filters.patch Magnifier (3.8 KB) Andrew Chaika, 2009-12-29 09:48

add-next-range-filters.patch Magnifier (7.18 KB) Mizuki ISHIKAWA, 2019-01-10 01:48

add-next-range-filters-v2.patch Magnifier (6.85 KB) Mizuki ISHIKAWA, 2019-01-10 02:40

operators@2x.png (48.3 KB) Go MAEDA, 2019-01-13 05:29


Related issues

Related to Redmine - Feature #4729: Add Date-Based Filters for Issues List Closed 2010-02-03
Related to Redmine - Feature #6954: Filter from date to date Closed 2010-11-22
Related to Redmine - Patch #18868: Add support for queries with 'next week' filter New

History

#1 Updated by Александр Курутин over 1 year ago

7 years have passed, but there is still no filter (next month).

#2 Updated by Sebastian Paluch 8 months ago

+1

#3 Updated by Go MAEDA 8 months ago

  • Category set to Issues filter

#4 Updated by Go MAEDA about 1 month ago

  • Related to Patch #18868: Add support for queries with 'next week' filter added

#5 Updated by Go MAEDA about 1 month ago

Redmine 4.0.0 has "yesterday", "last week", and "last month" filter but does not "tomorrow", "next week", and "next month" filter.

I think those filters should be useful for many users.

#6 Updated by Mizuki ISHIKAWA 8 days ago

Go MAEDA wrote:

Redmine 4.0.0 has "yesterday", "last week", and "last month" filter but does not "tomorrow", "next week", and "next month" filter.

I think those filters should be useful for many users.

I wrote a patch to add "tomorrow", "next week", and "next month" filter.
It is useful to have this filter when checking the tasks to be executed next month, next week, tomorrow.

#7 Updated by Mizuki ISHIKAWA 8 days ago

I fixed patch because unnecessary tests were included.

#8 Updated by Marius BALTEANU 6 days ago

  • Target version set to Candidate for next major release

LGTM

#9 Updated by Go MAEDA 5 days ago

  • File operators@2x.png added
  • Target version changed from Candidate for next major release to 4.1.0

Setting the target version to 4.1.0.

I propose reordering the operators as follows. While the current patch shows operators in "present -> past -> future" order, my change shows operators in "future -> present -> past" order. For example, operators will be ordered like "tomorrow, today, yesterday" and "next week, this week, last week, last 2 weeks" instead of "today, yesterday, tomorrow" and "this week, last week, last 2 weeks, next week". The proposing order is a tidy reverse-chronological order and should be intuitive.

    :date => [ "=", ">=", "<=", "><", "<t+", ">t+", "><t+", "t+", "nd", "t", "ld", "nw", "w", "lw", "l2w", "nm", "m", "lm", "y", ">t-", "<t-", "><t-", "t-", "!*", "*" ],

Also available in: Atom PDF