Create new tickets from an existing ticket


This plugin adds configurable buttons in the ticket header to create related tickets. The new ticket can inherit field values from the current ticket.

Bugs/Feature Requests

Existing bugs and feature requests for TicketCreateButtonsPlugin are here.

If you have any issues, create a new ticket.


0 / 1


2 / 2


Download the zipped source from here.


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



  1. Below instructions could be specific to some operating systems. Please help expanding these instructions.
  2. Generic installation guidelines are available at TracPlugins.
  3. [sudo], when used, is optional case you already have enough authority to modify your server.
  1. Install plugin:
    • with easy_install, globally:
      [sudo] easy_install
      • You might be required to select a specific tag, branch. Defaults to select from trunk

  2. Enable this component as follows:
    • by updating trac.ini file under appropriate configuration section:
      ticketcreatebuttons.* = enabled
    • or accessing your Admin panel under selected Trac environment ..admin/general/plugins .

  3. Configure Trac environment as follows:
    • by updating trac.ini file under appropriate configuration section:
      1. case using this plugin with SubticketsPlugin
        parents.tag = .//td[@headers="h_parents"]
        parents.label = Create
        parents.title = Create a new sibling
        parents.inherit = type, milestone, parents
    • or accessing your Admin panel (under selected Trac environment ..admin/general/plugins ).

  4. Restart web server:
    • Apache on Ubuntu, example command line:
      [sudo] /etc/init.d/apache2 restart

  5. Test if this component is working properly (main environment and secondary ones if also exists).
    1. If the plugin is installed correct, the configuration you have made should reflect on tickets.


  1. Under the appropriate section inside a TracIni file you can customize ticket properties as below:
      <field-name>.<argument> = value
    where <field-name>.<argument> = value can be one or many from below:
    • R - Required
    • O - Optional
Argument Version R / O Description Default
tag >= 0.1 R Argument to genshi.filters.Transfomer used to find the ticket form element to which the button will be prepended. Typically a custom field name.
* Example: blockedby.tag = .//td[@headers="h_blockedby"]
label >= 0.1 O The label for the button.
* Example: blockedby.label = Create
title >= 0.1 O The HTML title element used as a tool tip for the button.
* Example: blockedby.title = Create predecessor
inherit >= 0.1 O Comma-separated list of fields whose values should be inherited from the current ticket. If present but blank, no fields are inherited.
* Example: blockedby.inherit = type, milestone
No fields are inherited.
link >= 0.1 O Comma-separated list of newfield:currentfield pairs used to link the two tickets. The link field override inherit field.
* Example: = blocking:id sets the new ticket's blockedby field to the current tickets id.
set >= 0.1 O Comma-separated list of field:value pairs for setting values in the new ticket. The set field override inherit and link fields.
* Example: set = keywords:Foo sets the new ticket's keywords field to Foo.


  1. Example: Using this plugin with MasterTicketsPlugin, the following configuration creates buttons to create predecessor and successor tickets:
    blockedby.tag = .//td[@headers="h_blockedby"]
    blockedby.label = Create
    blockedby.title = Create a new predecessor
    blockedby.inherit = type, milestone = blocking:id
    blocking.tag = .//td[@headers="h_blocking"]
    blocking.label = Create
    blocking.title = Create a new successor
    blocking.inherit = type, milestone = blockedby:id
  2. Example: When used with SubticketsPlugin, new siblings can be created with:
    parents.tag = .//td[@headers="h_parents"]
    parents.label = Create
    parents.title = Create a new sibling
    parents.inherit = type, milestone, parents

Recent Changes

14013 by rjollos on 2014-07-23 19:27:52
Added COPYING file and author email. Refs #11871.
14011 by rjollos on 2014-07-23 16:51:36
Added 3-Clause BSD license, with permission of author. Fixes #11871.
14002 by rjollos on 2014-07-11 20:58:28
Fixed rendering of example on plugin admin page.


Author: ChrisNelson
Maintainer: Chris Nelson

Last modified 2 years ago Last modified on Nov 11, 2015, 11:14:20 AM