On Thursday, April 6, 2017 at 6:08:59 AM UTC-7, Mo wrote: > > Hi, > > usually in Trac core, the component owners are used to set some default > owner of a ticket based on the component owner map, only if no specific > owner was set. > > 1. Is it possible to disable that? >
Yes. https://trac.edgewall.org/wiki/TracUpgrade#Behaviorofticketdefault_ownerchanged https://trac.edgewall.org/wiki/TracTickets#DefaultValuesforDrop-DownFields > 2. Is it possible to use that map to set a custom role field "reviewer" to > the component owner, as it is decided to leave the reviews of foreign > submissions to the component owner? > That would be pretty simple to implement using ITicketManipulator. https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator The logic might be something like this: 1. If new ticket, check if component is non-empty, get component owner, if component owner is non-empty assign ticket['reviewer'] = component.owner 2. If existing ticket, check if component has changed (ticket['component'] != ticket._old['component']), get component owner, if component owner is non-empty assign ticket['reviewer'] = component.owner - Ryan > Question 1. purpose is that the owner should be used for some manager role > that is responsible for the ticket workflow. This is not the component > owner. Otherwise it would be possible using the DynamicFieldsPlugin: > > [ticket-custom] > reviewer.copy_from = owner > > > Best regards. > -- 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.
