Edgewall Software

Opened 3 months ago

Last modified 3 months ago

#13222 new defect

Add conditions for ticket-custom format date

Reported by: massimo.b@… Owned by:
Priority: normal Milestone:
Component: general Version: 1.2.3
Severity: normal Keywords: ticket-custom, date
Cc: Branch:
Release Notes:
API Changes:

Description (last modified by massimo.b@…)

As mentioned in comment:6:ticket:13216:

There is no way to create a query for "not set" or "not between" in Trac. It is only possible to create query for "duedate between dateA and dateB"…

There could be more filter conditions for the date format like the following. This applies also to core fields like Created and modified. I'm going to create the examples based on the "Created" field:

  • Created between 2019-10-01 and 2019-10-25 (already available, just for completeness)
  • Created not between 2019-10-01 and 2019-10-25
  • Created after 2019-10-01
  • Created before 2019-10-01
  • Created on 2019-10-01

For ticket-custom there could also be some

  • custom duedate on ""

More easily, taken from my mail clients (Evolution) filter engine, you could just drop the between rule and implement:

Date <Created> {is,is not,is before,is after} <date>

Thus any between-rule would be a done by a set of 2 rules using before and after.

Attachments (0)

Change History (1)

comment:1 by massimo.b@…, 3 months ago

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.