[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

Trac - How to do useful reporting in one query....

Hi I am using Trac to manage my bugs for a particular project. The problem is, when I create a report, it only allows for me to do ONE Sql query.

Is there a way to allow multiple queries? What I basically want to do is have a Trac report show the number of open bugs and closed bugs for the week IN ADDITION to a query that pulls up a report of current bugs...

0
eecosmo01
Asked:
eecosmo01
1 Solution
 
oleggoldCommented:
In sql You can combine several subqueries with joins to get it to 1 query,one report is genrally a one sql query,just pretty complex one.
If You'd give more details and the code You're using it would be possible to advise You further.
Anyway,subqueries,joined in one sql should provide enough detils for Your report
0
 
mhuntsCommented:
To show open and closed bugs on one report makes sense, but if you want completely different information, such as details of current bugs, then you should write a separate report for that one.

If the field columns are the same, then you could use SQL features such as GROUP BY, but if the columns of data are different, then that really means a separate report.
0
 
eecosmo01Author Commented:
I found out how to do it myself. Basically I had to rewrite the Trac code to accept multiple queries. It was the only way =(
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now