Default values of ticket workflow fields should be configured in the [ticket-workflow] section
|Reported by:||Ryan J Ollos||Owned by:|
Description (last modified by )
The fields resolution and status in the list of
Ticket.protected_fields (tags/trac-1.0.2/trac/ticket/model.py@:51-52#L49) are only modified by the workflow. #2045 moves Trac one step closer to adding
Ticket.protected_fields and only allowing the workflow to change the owner field (see comment:60:ticket:2045).
default_owner as attributes of a ticket workflow action and configured through the
[ticket-workflow] section rather than the
[ticket] section has a few advantages:
- It should be clear that these fields are controlled by the ticket workflow.
- Unique default values can be provided for each action in the workflow.
I've also found the attribute names
set_resolution to be a bit confusing. We might consider renaming these to
For completeness, we could also consider adding
restrict_owner as a workflow attribute, replacing or overriding
[ticket] restrict_owner. This was mentioned in comment:1:ticket:11976.