Filter ticket fields depending on ticket type and user permissions


This is a plugin to filter ticket fields depending on the ticket type and user permissions. It also allows you to set fields to read-only to prevent modification. When doing so the field is no longer part of the Modify section, but will still be shown in the ticket header.

Configuration is done in the admin section.

See also CondFieldsGenshiPlugin, DynamicFieldsPlugin

Bugs/Feature Requests

Existing bugs and feature requests for TicketFieldFilterPlugin are here.

If you have any issues, create a new ticket.


1 / 1


Download the zipped source from here.


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


General instructions on installing Trac plugins can be found on the TracPlugins page.

Enable the plugin in your trac.ini file:

ticketfieldfilter.* = enabled


The configuration can be changed using the Ticket Fields admin page in the Ticket section.

For each ticket type you may set:

  • Which fields to show at all.
  • If a shown field is read-only. Read-only fields don't show up in the Modify section.
  • A permission for a field. If the user doesn't have the necessary permission, the field is removed.

Note that permissions only apply to fields which are enabled at all for the ticket type.

Each entry in trac.ini starts with the ticket type:

<type>.fields = component, cc, type, ...
<type>.readonly = component, cc, ...
<type>.permission = component: PERM_1 | TICKET_CREATE, cc: PERM_2, ...

Leaving the entry <type>.fields empty disables all fields for the ticket type. Removing the entry completely enables all fields. Another way is to specify +:

# enable all fields for ticket type 'defect'
defect.fields = +

Note that the following fields can't be removed from the ticket page:

time, changetime, attachment

If the permission entry is missing or left empty, then no permission check takes place.

You may specify a list of fields which are always shown:

required_fields = summary, reporter, owner, description, status, type, cc

Default is: summary, reporter, owner, description, status.

Recent Changes

16373 by rjollos on 2017-03-24 03:04:43
TicketFieldFilterPlugin 1.0dev: Fix import error
16372 by rjollos on 2017-03-24 02:51:18
Remove empty directory
15740 by Cinc-th on 2016-08-31 13:58:18
TicketFilterPlugin: fix exception when ticket types were created/deleted while working on a ticket and previewing it. Ticket types were only read once during plugin init.


Author: Cinc-th
Maintainer: Cinc-th

Last modified 4 years ago Last modified on Mar 24, 2017, 3:08:54 AM