Changes between Version 14 and Version 15 of BlackMagicTicketTweaksPlugin


Ignore:
Timestamp:
Dec 24, 2009, 1:15:22 AM (5 years ago)
Author:
obs
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BlackMagicTicketTweaksPlugin

    v14 v15  
    1 = Various hacks to alter Ticket form behaviour =
     1= Various hacks to alter Ticket form behaviour and Ticket Permissions =
    22
    33== News ==
     4
     5=== 24/Dec/09 ===
     6
     7Nearly christmas! I've added the ability to deny access to ticket types by permission. All known bugs are fixed.
    48
    59=== 30/Nov/09 ===
     
    2327The plugin also lets you define arbitrary permissions, say, MASTER_OF_PRIORITIES, if you want to require someone to have such a custom permission to edit a certain field.
    2428
    25 More evil hacks to come-- one day, I'll make it so the fields available in COMPONENT (For example) will be different depending on what Ticket Type you choose.
    26 
    27 P.S. I am emphasizing the 'evil hackitude' of this because it seems terribly unclean and a bad idea to abuse. But it works for me! :)
     29The plugin can also deny access to certain ticket types by permissions using the ticket_type ini setting.
    2830
    2931== Bugs/Feature Requests ==
     
    3234
    3335If you have any issues, create a
    34 [/newticket?component=BlackMagicTicketTweaksPlugin&owner=obs new ticket].
     36[/newticket?component=BlackMagicTicketTweaksPlugin&owner=obs new ticket] please cc yourself if you're anonymous or you won't be notified of when I respond!
    3537
    3638[/query?status=new&status=assigned&status=reopened&group=severity&verbose=1&component=BlackMagicTicketTweaksPlugin&order=severity Detailed Tickets]
     
    4143=== Prerequisites ===
    4244
    43 You probably need to install Genshi from the trunk before this will work (>=0.5dev), at least until 0.11 comes out final.
     45Latest Trac 0.11
    4446
    4547=== Download ===
     
    8890}}}
    8991
    90 The following actions are supported at this time:
     92The following are considered True settings in trac.ini:
     93* true
     94* yes
     95* on
     96* 1
     97They are all case insensitive
     98
     99The following actions are supported:
    91100
    92101 disable::
     
    112121}}}
    113122
     123To deny access to a ticket type by permission use the following options
     124
     125ticket_type.* = PERMISSION (replacing * with the ticket type, i.e. defect)
     126I.e. to only allow users with the TICKET_MODIFY permission access to defect tickets you would set the following
     127{{{
     128[blackmagic]
     129ticket_type.defect = TICKET_MODIFY
     130}}}
     131
     132Denying access to a ticket type will prevent users from seeing them in reports, viewing the tickets of that type and creating tickets of that type.
     133
     134Currently the ticket_type.* option can only hold one permission, if you want a comma separated list [/newticket?component=BlackMagicTicketTweaksPlugin&owner=obs raise a ticket] and request it.
     135
     136To use this option you will need to add BlackMagicTicketTweaks to the permission_policies option in the [trac] section of the trac.ini i.e.
     137
     138{{{
     139[trac]
     140permission_policies =  BlackMagicTicketTweaks, DefaultPermissionPolicy
     141}}}
     142
    114143== Example ==
    115144
    116145{{{
    117146[blackmagic]
    118 permissions = MASTER_OF_PERMISSIONS
     147permissions = MASTER_OF_PERMISSIONS, TICKET_RAISE_DEFECT
    119148tweaks = severity, priority
    120149priority.tip = The priority is the Project-defined importance of the issue, and in general the order in which things will tend to be done.
    121150severity.tip = The severity is how important this issue is to the customer or you.
    122151priority.permission = MASTER_OF_PERMISSIONS
     152ticket_type.defect = TICKET_RAISE_DEFECT
     153ticket_type.task = TICKET_ADMIN
    123154}}}
    124155