Changes between Version 57 and Version 58 of SimpleMultiProjectPlugin


Ignore:
Timestamp:
Sep 21, 2015, 6:10:57 PM (9 years ago)
Author:
anonymous
Comment:

Add Example SQL Statement to include the Project Name into the Ticket Reports - not optimized or anything else

Legend:

Unmodified
Added
Removed
Modified
  • SimpleMultiProjectPlugin

    v57 v58  
    8686[[Image(timeline_projects_filter.png, 400px)]]
    8787
     88----
     89You also can include the Project Name in your Ticket Queries by adding a join to "ticket_custom".
     90Example:
     91
     92{{{#!sql
     93SELECT p.value AS __color__,
     94   id AS ticket, summary,
     95   tc.value AS 'Project-Name', # display the Project Name in the Ticket Overview
     96   version, milestone, t.type AS type,
     97   owner, status,
     98   time AS created,
     99   changetime AS _changetime, description AS _description,
     100   reporter AS _reporter
     101  FROM ticket t
     102  LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
     103  LEFT JOIN ticket_custom tc ON t.id = tc.ticket AND tc.name = 'project' # add the join to ticket_custom and only select the Project-Name
     104  WHERE status <> 'closed'
     105  ORDER BY CAST(p.value AS integer), milestone, t.type, time
     106}}}
     107
    88108== Bugs/Feature Requests
    89109