Ticket #2604 (closed defect: fixed)
Opened 6 years ago
Last modified 4 years ago
fetching a ticket by list of ids in TicketQuery
| Reported by: | Karlina | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | report system | Version: | 0.9.2 |
| Severity: | trivial | Keywords: | query |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
Seems the existing TicketQuery macro cannot display a ticket by its ticket number. I was trying
[[TicketQuery(id=1)]]
and it didn't show anything, no error either.
Attachments
Change History
comment:1 Changed 5 years ago by sid
comment:2 Changed 5 years ago by cboos
- Milestone set to 0.11
- Owner changed from jonas to cboos
- Severity changed from minor to trivial
- Summary changed from fetching a ticket by id in TicketQuery to fetching a ticket by list of ids in TicketQuery
This makes sense for lists of ticket ids, though.
I want to implement this anyway by extending the TracLinks syntax for ticket ids,
e.g. #12,23,34 (see #3011), so it would cost nothing to add that to the TicketQuery macro, which additionally will give you the ability to add constraints (set the order, group, ...) and to specify an output format for such lists.
comment:3 Changed 5 years ago by Noah Kantrowitz (coderanger) <coderanger@…>
See also #4119 for the cause of this issue.
comment:4 Changed 5 years ago by cboos
- Resolution set to fixed
- Status changed from new to closed
Implemented in r4239.
comment:5 Changed 4 years ago by cboos
- Component changed from wiki to report system
- Keywords query added



It seems to me that if you already know the ticket id, there is no need to search for it... proposing a wontfix resolution for this.