Opened 18 years ago
Last modified 11 years ago
#5031 new enhancement
Queries ought to support less/great than for ordered values (i.e. priorities and severities)
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | next-major-releases |
Component: | ticket system | Version: | 0.10.2 |
Severity: | normal | Keywords: | query |
Cc: | olemis+trac@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I.e. expand the [is|is not] operator set a bit.
Attachments (0)
Change History (10)
follow-up: 2 comment:1 by , 18 years ago
Keywords: | query added |
---|---|
Milestone: | → 0.12 |
Severity: | trivial → normal |
comment:2 by , 18 years ago
Replying to cboos:
Similar to the request for ordering on dates (I can't find that ticket anymore, but it's not a duplicate anyway).
Right.
And no, it's not a trivial change…
Sorry, I meant priority. Shouldn't have touched that field.
The TicketQuery expressions should also support the common ordering operators (<, ⇐, ⇒, >).
Yup.
comment:3 by , 18 years ago
#1943 was the ticket about ticket date range queries I was looking for this morning.
comment:5 by , 16 years ago
Milestone: | 0.13 → 0.12 |
---|
comment:7 by , 15 years ago
Owner: | removed |
---|
comment:8 by , 15 years ago
Milestone: | 0.12 → next-major-0.1X |
---|
comment:9 by , 11 years ago
The problem here is that the priority and severity and other such enum type of values are stored as text. Sorting them based on < > ⇐ ≥ is not an option unless one also compares against the ordering number which is stored in the enum table.
However, the ordering number does only reflect the ordering by which the individual items will be displayed in the drop down when editing an issue.
The information as to which priority has the highest priority and which has the lowest is simply not there, unless one wants to utilize the ordering field in the enum table for this. And by comparing the strings alphanumerically will not do the trick, unless you assign your priorities names such as "1" for the lowest priority, or "2", or "3" for the highest priority.
The same is true for the severity field.
comment:10 by , 11 years ago
Cc: | added |
---|
Similar to the request for ordering on dates (I can't find that ticket anymore, but it's not a duplicate anyway).
And no, it's not a trivial change…
The TicketQuery expressions should also support the common ordering operators (<, ⇐, ⇒, >).