[Patch] Ability to have a default status on triage operations
|Reported by:||norberto.bezi@…||Owned by:||retracile|
Description (last modified by rjollos)
Added ability to have a default status on triage operations.
The following example will set the status to reopen by default but to bug type tickets it will set development.
reopen = closed -> * reopen.operations = del_resolution,triage,del_owner reopen.permissions = TICKET_CREATE reopen.triage_field = type reopen.triage_split = *->reopened,bug->development
Index: controller.py =================================================================== --- controller.py (revision 8373) +++ controller.py (working copy) @@ -354,13 +354,16 @@ action + '.triage_field').strip() transitions = self.config.get('ticket-workflow', action + '.triage_split').strip() + default_status = 'new' for transition in [x.strip() for x in transitions.split(',')]: value, status = [y.strip() for y in transition.split('->')] if value == ticket[field].strip(): break + else: + if value == '*': + default_status = status else: - self.env.log.error("Bad configuration for 'triage' operation in action '%s'" % action) - status = 'new' + status = default_status return status
Change History (4)
comment:2 Changed 4 years ago by rjollos
- Description modified (diff)
- Summary changed from Ability to have a default status on triage operations to [Patch] Ability to have a default status on triage operations