[[PageOutline(2-5,Contents,pullout)]] = Filter ticket fields depending on ticket type and user permissions == Description A plugin to filter ticket fields depending on the ticket type and user permissions. You may also set fields to read only to prevent modification. When doing so the field is no longer part of the ''Modify'' section but still shown in the ticket header. Configuration is done in the admin section. See also CondFieldsGenshiPlugin, CondFieldsPlugin, DynamicFieldsPlugin == !Bugs/Feature Requests Existing bugs and feature requests for TicketFieldFilterPlugin are [report:9?COMPONENT=TicketFieldFilterPlugin here]. If you have any issues, create a [/newticket?component=TicketFieldFilterPlugin new ticket]. [[TicketQuery(component=TicketFieldFilterPlugin&group=type,format=progress)]] == Download Download the zipped source from [export:ticketfieldfilterplugin here]. == Source You can check out TicketFieldFilterPlugin from [/svn/ticketfieldfilterplugin here] using Subversion, or [source:ticketfieldfilterplugin browse the source] with Trac. == Installation/Configuration General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. Enable the plugin in your trac.ini file: {{{#!ini [components] ticketfieldfilter.* = enabled }}} === Configuration Note that configuration can be changed using an 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. {{{#!ini [ticket-field-filter] .fields = component, cc, type, ... .readonly = component, cc, ... .permission = component: PERM_1 | TICKET_CREATE, cc: PERM_2, ... }}} Leaving the entry {{{.fields}}} empty disables all fields for the ticket type. Removing the entry completely enables all fields. Another way is to specify ''+'': {{{#!ini [ticket-field-filter] # 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 no permission check takes place. You may specify a list of fields which are always shown: {{{#!ini [ticket-field-filter] required_fields = summary, reporter, owner, description, status, type, cc }}} Default is: {{{summary, reporter, owner, description, status}}}. == Recent Changes [[ChangeLog(ticketfieldfilterplugin, 3)]] == !Author/Contributors **Author:** [wiki:Cinc-th] [[BR]] **Maintainer:** [[Maintainer]] [[BR]] **Contributors:**