Add a set_owner_to_component_owner workflow operation
|Reported by:||Ryan J Ollos||Owned by:||Ryan J Ollos|
The ticket owner change was not shown in the ticket preview for the special case of the owner being set to the component owner on component change.
As described in comment:53:ticket:2045, it would be good to move out of the model the behavior tags/trac-1.0.2/trac/ticket/model.py@:286-303#L260 of changing the component of a ticket in the new state. The behavior can be moved to the ticket workflow. To preserve the existing behavior we'll need to modify the workflow in an upgrade step to support the following transition:
leave_new = new -> new leave_new.label = leave leave_new.default = 1 leave_new.operations = leave_status, set_owner_to_component_owner
Another way to accomplish this might be to allow the
<component_owner> to be used in the
Either way, we'll need to decide whether the behavior should be described in the workflow action hint, or whether it should be silent. If we decide it should be silently applied, that will drive the need for a workflow configuration attribute to configure the operation as a silent one.