On Wednesday, July 20, 2016 at 12:49:02 AM UTC-7, Florian Schricker wrote:
>
>
> Hi Ryan,
>
>
> thanks for picking up the question!
>
>
> Am Dienstag, 19. Juli 2016 16:53:43 UTC+2 schrieb RjOllos:
>>
>>
>> On Tuesday, July 19, 2016 at 6:43:54 AM UTC-7, Florian Schricker wrote:
>>>
>>> I am uncertain whether this is possible at all so I am asking here: I 
>>> would like to disable modifying the ticket description when the ticket is 
>>> in a given state while still allowing commenting. Can anything like this be 
>>> configured in a workflow?
>>>
>>
>> 1. BlackMagicTicketsPlugin (1) allows a permission to be specified to 
>> edit a ticket field. 
>>
> 2. ExtraPermissionsProvider (2) allow you to define new permissions.
>>
> 3. A permissions policy could be implemented, similar to 
>> ReadonlySignedTickets (3), to deny a permission when the ticket is in a 
>> particular state.
>>
>> Putting those three things together, I think it might work to define a 
>> new permission for editing the ticket description, and deny the permission 
>> when the ticket is in a particular state.
>>
>> (1) https://trac-hacks.org/wiki/BlackMagicTicketTweaksPlugin 
>> (2) https://trac.edgewall.org/wiki/TracPermissions#CreatingNewPrivileges
>> (3) 
>> https://trac.edgewall.org/wiki/CookBook/Configuration/SignedTickets#Readonlylogic
>>
>  
> From looking at ReadonlySignedTickets I am wondering if this plugin would 
> not suffice already:
>
>    - Using the "Allow ticket comments" variation (basically enabling 
>    permission TICKET_APPEND again commenting would be enabled, but not 
>    modifying the description (TICKET_MODIFY required, no?).
>    - Enhancing the lines "if t['status'] == 'closed' and t['resolution'] 
>    == 'signed': return False" with the actual ticket states I am having 
>    here in my setup would do the rest. There would be no configuration via 
>    trac.ini but I can do without.
>
> I think I'll give it a go, thanks again for these good pointers to actual 
> solutions!!
> Florian
>

It sounds like that would work. You could even grant TICKET_CHGPROP, 
allowing ticket properties to be edited but not the ticket description.

- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to