Changes between Version 16 and Version 17 of TracTicketsCustomFields
- Timestamp:
- Nov 16, 2006, 11:46:00 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketsCustomFields
v16 v17 75 75 === Reports Involving Custom Fields === 76 76 77 Custom ticket fields are stored in the ` custom_ticket` table, not in the `ticket` table. So to display the values from custom fields in a report, you will need a join on the 2 tables. Let's use an example with a custom ticket field called `progress`.77 Custom ticket fields are stored in the `ticket_custom` table, not in the `ticket` table. So to display the values from custom fields in a report, you will need a join on the 2 tables. Let's use an example with a custom ticket field called `progress`. 78 78 79 79 {{{ … … 81 81 SELECT p.value AS __color__, 82 82 id AS ticket, summary, owner, c.value AS progress 83 FROM ticket t, enum p, custom_ticketc83 FROM ticket t, enum p, ticket_custom c 84 84 WHERE status IN ('assigned') AND t.id = c.ticket AND c.name = 'progress' 85 85 AND p.name = t.priority AND p.type = 'priority'