Conditional fields for ticket types

CondFieldsPlugin is deprecated, please use the more flexible DynamicFieldsPlugin instead. See hiderule for examples of configuring conditional fields.


This plugin allows having some ticket fields be conditional based on the ticket type. Note that this plugin is implemented entirely in JavaScript, so if that is disabled, the user will see all fields as normal.

Bugs/Feature Requests

Existing bugs and feature requests for CondFieldsPlugin are here.

If you have any issues, create a new ticket.


15 / 15


2 / 2


3 / 3


Download the zipped source from here.


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


To enable this plugin, add the following to your trac.ini file:

condfields.* = enabled


In the condfields section, each ticket type maps to one entry of the same name. By default all the standard Trac fields are shown for all types, but you can disable this with the include_standard option. Example configuration:

include_standard = false
defect = foo, bar
task = baz

Recent Changes

14505 by rjollos on 2015-03-25 06:49:12
3.0dev: Fixed indentation errors in [12825] and [12827]. Fixes #12248.

Patch by bannerth.akos@….

14083 by rjollos on 2014-08-13 09:28:26

3.0dev: Trac 1.0-compatible version. Refs #11920.

  • Uses add_script_data to pass variables to script rather than dynamically interpolating a template.
  • Removed unnecessary code from admin module that duplicated declaration of options in web_ui module.
  • Required permission to access the "Ticket Type Fields" admin page is now TICKET_ADMIN rather than TRAC_ADMIN.
14082 by rjollos on 2014-08-13 08:21:06
Branching for Trac 1.0. Refs #11920.


Author: coderanger
Maintainer: none

Last modified 9 months ago Last modified on Jan 27, 2016, 7:10:42 AM