Changes between Version 2 and Version 3 of TicketFieldFilterPlugin
- Timestamp:
- Jul 30, 2016, 12:23:11 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TicketFieldFilterPlugin
v2 v3 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 3 = Filter ticket fields depending on ticket type and user permissions … … 5 5 == Description 6 6 7 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 stillshown in the ticket header.7 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. 8 8 9 9 Configuration is done in the admin section. 10 10 11 See also CondFieldsGenshiPlugin, CondFieldsPlugin, DynamicFieldsPlugin 11 See also CondFieldsGenshiPlugin, DynamicFieldsPlugin 12 12 13 == !Bugs/Feature Requests 13 14 … … 28 29 You can check out TicketFieldFilterPlugin from [/svn/ticketfieldfilterplugin here] using Subversion, or [source:ticketfieldfilterplugin browse the source] with Trac. 29 30 30 == Installation /Configuration31 == Installation 31 32 32 33 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 33 34 34 Enable the plugin in your trac.inifile:35 Enable the plugin in your `trac.ini` file: 35 36 36 37 {{{#!ini … … 39 40 }}} 40 41 41 === Configuration 42 Note that configuration can be changed using an admin page in the ''Ticket'' section. 42 == Configuration 43 44 Note that the configuration can be changed using an admin page in the ''Ticket'' section. 43 45 44 46 For each ticket type you may set: 45 * Which fields to show at all 46 * If a shown field is read only. Readonly fields don't show up in the ''Modify'' section.47 * Which fields to show at all. 48 * If a shown field is read-only. Read-only fields don't show up in the ''Modify'' section. 47 49 * A permission for a field. If the user doesn't have the necessary permission, the field is removed. 48 50 49 51 Note that permissions only apply to fields which are enabled at all for the ticket type. 50 52 51 Each entry in ''trac.ini'' starts with the ticket type.53 Each entry in `trac.ini` starts with the ticket type: 52 54 {{{#!ini 53 55 [ticket-field-filter] … … 56 58 <type>.permission = component: PERM_1 | TICKET_CREATE, cc: PERM_2, ... 57 59 }}} 60 58 61 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 ''+'': 59 62 … … 68 71 {{{time, changetime, attachment}}} 69 72 70 If the permission entry is missing or left empty no permission check takes place.73 If the permission entry is missing or left empty, then no permission check takes place. 71 74 72 75 You may specify a list of fields which are always shown: