wiki:CondFieldsPlugin

Version 4 (modified by rjollos, 2 years ago) (diff)

Needs a maintainer.

Conditional fields support for tickets

Description

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

Configuration

In the condfields section, each ticket type maps to one entry of the same name (see below for an example). By default all the standard Trac fields are shown for all types, but you can disable this with the include_standard option.

Bugs/Feature Requests

Existing bugs and feature requests for CondFieldsPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

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

Example

To enable:

[components]
condfields.* = enabled

Example configuration:

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

Recent Changes

[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.
[14081] by rjollos on 2014-08-13 03:07:49
Update properties table when ticket type changes. Refs #11882.

Author/Contributors

Author: coderanger
Maintainer: none
Contributors: