Changes between Version 14 and Version 15 of BlackMagicTicketTweaksPlugin
- Timestamp:
- Dec 24, 2009, 12:15:22 AM (14 years ago)
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 = 2 2 3 3 == News == 4 5 === 24/Dec/09 === 6 7 Nearly christmas! I've added the ability to deny access to ticket types by permission. All known bugs are fixed. 4 8 5 9 === 30/Nov/09 === … … 23 27 The 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. 24 28 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! :) 29 The plugin can also deny access to certain ticket types by permissions using the ticket_type ini setting. 28 30 29 31 == Bugs/Feature Requests == … … 32 34 33 35 If 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! 35 37 36 38 [/query?status=new&status=assigned&status=reopened&group=severity&verbose=1&component=BlackMagicTicketTweaksPlugin&order=severity Detailed Tickets] … … 41 43 === Prerequisites === 42 44 43 You probably need to install Genshi from the trunk before this will work (>=0.5dev), at least until 0.11 comes out final. 45 Latest Trac 0.11 44 46 45 47 === Download === … … 88 90 }}} 89 91 90 The following actions are supported at this time: 92 The following are considered True settings in trac.ini: 93 * true 94 * yes 95 * on 96 * 1 97 They are all case insensitive 98 99 The following actions are supported: 91 100 92 101 disable:: … … 112 121 }}} 113 122 123 To deny access to a ticket type by permission use the following options 124 125 ticket_type.* = PERMISSION (replacing * with the ticket type, i.e. defect) 126 I.e. to only allow users with the TICKET_MODIFY permission access to defect tickets you would set the following 127 {{{ 128 [blackmagic] 129 ticket_type.defect = TICKET_MODIFY 130 }}} 131 132 Denying 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 134 Currently 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 136 To 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] 140 permission_policies = BlackMagicTicketTweaks, DefaultPermissionPolicy 141 }}} 142 114 143 == Example == 115 144 116 145 {{{ 117 146 [blackmagic] 118 permissions = MASTER_OF_PERMISSIONS 147 permissions = MASTER_OF_PERMISSIONS, TICKET_RAISE_DEFECT 119 148 tweaks = severity, priority 120 149 priority.tip = The priority is the Project-defined importance of the issue, and in general the order in which things will tend to be done. 121 150 severity.tip = The severity is how important this issue is to the customer or you. 122 151 priority.permission = MASTER_OF_PERMISSIONS 152 ticket_type.defect = TICKET_RAISE_DEFECT 153 ticket_type.task = TICKET_ADMIN 123 154 }}} 124 155