Edgewall Software

Opened 8 years ago

Last modified 2 years ago

#11856 new enhancement

Default values of ticket workflow fields should be configured in the [ticket-workflow] section — at Initial Version

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: next-dev-1.7.x
Component: ticket system Version:
Severity: normal Keywords: workflow
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


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 owner to Ticket.protected_fields and only allowing the workflow to change the owner field.

Having default_resolution and 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_owner and set_resolution to be a bit confusing. We might consider renaming these to resolutions / owners or allowed_resolutions / allowed_owners.

Change History (0)

Note: See TracTickets for help on using tickets.