C++ wxWidgets Linux Win32 OS X Autoconf Bakefile Boost GCC GNU IMAP MSVC Perl Python SMTP STL TCP/IP Threads Unix ZSH

trac-ticket-stats

Overview

trac-tickets-stats is a trivial Perl script which can be used to collect statistics about the tickets creation and closure from remote Trac installations. It simply uses Trac timeline page to get this information.

Here is an example of using it:

$ ./trac-ticket-stats trac.wxwidgets.org 2011-07-01 today
Ticket statistics for http://trac.wxwidgets.org from 2011-07-01 to 2011-07-24:
--------------------
New               58
Closed            78
Reopened           8
--------------------
Delta            -12

Download

The script is available at trac-ticket-stats and there is no installation required but you must have a working Perl, see the requirements section below.

Requirements

You need a working installation of Perl and CPAN to be able to install the following modules: DateTime, DateTime::Format::Natural, Getopt::Long::Descriptive and WWW::Mechanize and their dependencies. No specifically recent version of neither Perl nor these modules is required (although it was only tested with 5.10 and 5.12 so please let us know if it doesn't work with 5.8 or earlier versions for you).

Usage Instructions

The script requires 3 mandatory parameters:

  1. Trac URL: The base URL of Trac installation, e.g. trac.example.com. http:// prefix and trailing slash are optional and will be added if not present.
  2. Starting date of the range to report in any common format. It may also use any relative syntax supported by DateTime::Format::Natural e.g. "1 month ago" or "last Monday".
  3. End date of the range, a common value is "today".

By default a human-readable report is generated but you may use --csv option to produce the output in machine-readable format using comma separated values and "start date", "end date", "new", "closed" and "reopened" fields.

License

This script is Free Software released under BSD license.

July 7, 2022
wxWidgets 3.2, the latest stable release of wxWidgets, in development since several years, is finally available.
September 1, 2020
New gcc-warnings-tools script for C/C++ programmers for showing information about all the available warning options.
June 23, 2015
Release of where-included: a new tool for C/C++ programmers for finding the header file dependencies.
July 28, 2014
A new release of Bakefile, a makefile generator tool, is now available.
August 22, 2013
Added apache-splice-logs tool page.
March 31, 2013
Added new svn-to-git migration article.
August 6, 2012
Minor mladmin update: fix the script to work with recent Perl versions.
July 25, 2012
New diff-pdf tool description added.
April 27, 2012
wxWidgets training course proposed by TT-Solutions has been updated to cover version 3.0, please see training page for more information including the plan and some examples.
December 5, 2011
Another new script to help dealing with removing #pragma once from your code if needed.