Version 3 (modified by nielo, 23 months ago) (diff)


Create tickets from the command line


The ticket2trac script is a basic tool which allows one to create trac tickets from the command line or within another python script. It supports all basic ticket fields, and aside from the ticket summary (which is required by trac), all fields which are not given will be filled in with the default values for the site. These values are specified in the trac.ini field or may be configured in the trac's Admin page.

ticket2trac has only been tested under trac 0.11, but it should work in any version of trac.

Bugs/Feature Requests

Existing bugs and feature requests for TicketToTracScript are here.

If you have any issues, create a new ticket.


Download the zipped source from here.


You can check out TicketToTracScript from here using Subversion, or browse the source with Trac.


Usage: [options] /path/to/trac/installation 'Ticket summary'

For a full list of command line options, simply run: --help

Recent Changes

[7279] by singbox on 2009-12-18 11:36:58
Changed so that a new ticket default status is new if nothing is given.
[7269] by singbox on 2009-12-16 14:53:11
Initial import into trac-hacks repository.
[7268] by singbox on 2009-12-16 14:49:12
New hack TicketToTracScript, created by singbox


Author: singbox
Contributors: As file attachments don't work here, we provide a patch aganst version 0.9 to support adding copy-recipients and sending trac-notifications. Look at