Changes between Version 1 and Version 2 of TicketFieldFilterPlugin


Ignore:
Timestamp:
Jul 30, 2016, 8:05:44 AM (6 years ago)
Author:
Cinc-th
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TicketFieldFilterPlugin

    v1 v2  
    1 [[PageOutline(2-5,Contents,pullout)]]
     1 [[PageOutline(2-5,Contents,pullout)]]
    22
    33= Filter ticket fields depending on ticket type and user permissions
     
    99Configuration is done in the admin section.
    1010
     11See also CondFieldsGenshiPlugin, CondFieldsPlugin, DynamicFieldsPlugin
    1112== !Bugs/Feature Requests
    1213
     
    2728You can check out TicketFieldFilterPlugin from [/svn/ticketfieldfilterplugin here] using Subversion, or [source:ticketfieldfilterplugin browse the source] with Trac.
    2829
    29 == Installation
     30== Installation/Configuration
    3031
    3132General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
     33
     34Enable the plugin in your trac.ini file:
     35
     36{{{#!ini
     37[components]
     38ticketfieldfilter.* = enabled
     39}}}
     40
     41=== Configuration
     42Note that configuration can be changed using an admin page in the ''Ticket'' section.
     43
     44For each ticket type you may set:
     45* Which fields to show at all
     46* If a shown field is read only. Read only fields don't show up in the ''Modify'' section.
     47* A permission for a field. If the user doesn't have the necessary permission, the field is removed.
     48
     49Note that permissions only apply to fields which are enabled at all for the ticket type.
     50
     51Each entry in ''trac.ini'' starts with the ticket type.
     52{{{#!ini
     53[ticket-field-filter]
     54<type>.fields = component, cc, type, ...
     55<type>.readonly = component, cc, ...
     56<type>.permission = component: PERM_1 | TICKET_CREATE, cc: PERM_2, ...
     57}}}
     58Leaving 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
     60{{{#!ini
     61[ticket-field-filter]
     62# enable all fields for ticket type 'defect'
     63defect.fields = +
     64}}}
     65
     66Note that the following fields can't be removed from the ticket page:
     67
     68{{{time, changetime, attachment}}}
     69
     70If the permission entry is missing or left empty no permission check takes place.
     71
     72You may specify a list of fields which are always shown:
     73
     74{{{#!ini
     75[ticket-field-filter]
     76required_fields = summary, reporter, owner, description, status, type, cc
     77}}}
     78
     79Default is: {{{summary, reporter, owner, description, status}}}.
    3280
    3381== Recent Changes