wiki:TicketFieldsPlugin

Version 4 (modified by figaro, 9 years ago) (diff)

Cosmetic changes, tagged with license

Filter custom fields on a per-ticket basis

Description

This plugin adds support for filtering displayed custom fields on a per-ticket basis. This is useful for omitting fields that don't apply to specific ticket types, etc. Rather than simply hiding the fields, it removes them from the transmitted data altogether, thus making page rendering and subsequent plugin evaluation faster. It works by adding a custom field responsible for keeping track of which fields should be displayed. For users with TRAC_ADMIN, TICKET_ADMIN, or TICKET_FIELD_ADMIN permission, a jQuery datatable is displayed just below the standard trac properties fieldset that is used to manage which fields are displayed.

In addition, the ticket types admin console is extended with a similar data table that allows for templating of standard ticket types. In this way, /newticket?type=foo will display only the selected fields for that type.

Bugs/Feature Requests

Existing bugs and feature requests for TicketFieldsPlugin are here.

If you have any issues, create a new ticket.

defect

1 / 3

enhancement

1 / 1

Download

Download the zipped source from [download:ticketfieldsplugin here].

Source

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

Screenshots

Per-ticket field management with jQuery datatable, where only the checked custom fields appear in the properties fieldset:

Per-ticket field management

Ticket type template via admin console:

Ticket type template admin

Recent Changes

12580 by bphinz on 2013-01-29 22:11:54
Initial checkin of TicketFieldsPlugin
12579 by bphinz on 2013-01-29 21:47:13
New hack TicketFieldsPlugin, created by bphinz
(more)

Author/Contributors

Author: bphinz
Maintainer: bphinz
Contributors:

Attachments (2)

Download all attachments as: .zip