Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6361579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:47:45+00:00 2026-05-24T23:47:45+00:00

I have trac installed for managing my online projects. I have also installed a

  • 0

I have trac installed for managing my online projects. I have also installed a date plugin DateFieldPlugin in it. I am unable to show this date filed in the custom reports.

The following code generates the normal report.

SELECT p.value AS __color__,
owner AS __group__,
id AS ticket, severity, summary, component, milestone, t.type AS type, time AS created,
changetime AS _changetime, description AS _description,reporter AS _reporter
FROM ticket t
LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
WHERE status = 'assigned'
ORDER BY owner, p.value, t.type, time

and I want something like this:

SELECT p.value AS __color__,
owner AS __group__,
id AS ticket, severity, summary, component, milestone, t.type AS type, time AS created,
changetime AS _changetime, description AS _description,
reporter AS _reporter, c.value AS Duedate
FROM ticket t
LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority', ticket_custom c
WHERE status = 'assigned'
ORDER BY owner, p.value, t.type, time

The above code is showing me the due date column though it is showing one task row as multiple times.

Can anybody help me in this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:47:46+00:00Added an answer on May 24, 2026 at 11:47 pm

    Derek is quit there. Nevertheless, here is the working one:

    SELECT p.value AS __color__,
    owner AS __group__,
    id AS ticket, severity, summary, component, milestone, t.type AS type, time AS created,
    changetime AS _changetime, description AS _description,
    reporter AS _reporter, c.value AS Duedate
    FROM ticket t
    LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
    LEFT OUTER JOIN ticket_custom c ON t.id = c.ticket AND c.name = 'due_date'
    WHERE status = 'assigned'
    ORDER BY owner, p.value, t.type, time
    

    Only you will have to replace the c.name value to match with your date fields name, if it’s not ‘due_date’ like in my configuration.

    Background: The ‘ticket_custom’ table definition is just one key-value-pair per row, as the call for the schema reveals:

    sqlite> .schema ticket_custom
    CREATE TABLE ticket_custom (
        ticket integer,
        name text,
        value text,
        UNIQUE (ticket,name)
    );
    

    Please note the primary key is not just the ticket number, but ticket (number) and (custom column) name combined. Hence an additional WHERE clause is required on the JOIN or you’ll still get multiple rows – one for each custom field of all matching tickets. This is in contrast to the main table ‘ticket’, where all information for one ticket is in a single row.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have trac site set up to listen on /tracproj/, this swiftly passes control
So I have Html like this http://trac.edgewall.org/wiki/RecentChanges (I want to create some Flash Track
I just installed trac for this project I'm working on, since it's turned out
Right now I'm using Trac with multiple projects and have customized the project-listing template
Is there a trac plugin for automatically closing tickets that have remained open for
I have trac installed and running great using apache2 and mod_wsgi. However when ever
I'm using Trac to manage my projects. Some guys have to take a regular
I'm managing a project using trac. I have structured pages hierarchically and they look
I have a Trac project installed on top of a Subversion implementation (easy to
Have someone used with success TRAC ticketing + wiki system accessing a code base

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.