wiki:CondFieldsPlugin

Conditional fields for ticket types

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

Description

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.

defect

15 / 15

enhancement

2 / 2

task

3 / 3

Download

Download the zipped source from here.

Source

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

Installation

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

[components]
condfields.* = enabled

Configuration

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:

[condfields]
include_standard = false
defect = foo, bar
task = baz

Recent Changes

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

Patch by bannerth.akos@….

14083 by rjollos on 2014-08-13 07: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 06:21:06
Branching for Trac 1.0. Refs #11920.
(more)

Author/Contributors

Author: coderanger
Maintainer: none
Contributors:

Last modified 7 years ago Last modified on May 13, 2017, 3:38:04 PM