#2898: sandbox/workflow custom query missing status and resolution options
----------------------------------+-----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: athomas
Type: defect | Status: assigned
Priority: normal | Milestone: 0.11
Component: ticket system | Version: devel
Severity: normal | Resolution:
Keywords: workflow |
----------------------------------+-----------------------------------------
Comment (by athomas):
r3063 adds an `ITicketEnumContributor` interface which lets plugins add
ticket states, priorities, etc. programatically. I haven't updated the
logic in the custom state code to do this automatically, but will for the
next commit.
eg. This adds an extra ''wish'' ticket type and a ''retest'' ticket state.
{{{
#!python
class CoolStuff(Component):
implements(ITicketEnumContributor)
def get_enumerated_field_values(self, enum_type):
values = {'ticket_type': ['wish'],
'status': ['retest']}
return values.get(enum_type, [])
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2898>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets