Opened 19 years ago
Closed 19 years ago
#2898 closed defect (fixed)
sandbox/workflow custom query missing status and resolution options
Reported by: | Owned by: | Alec Thomas | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | ticket system | Version: | devel |
Severity: | normal | Keywords: | workflow |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I'm testing using a fresh checkout of source:/sandbox/workflow as of today. After adding the ticket-status and ticket-actions sections to the trac.ini as described in WorkFlow, I do see new status for "verified" and "resolved", and can use these status values in queries.
I do not see additional checkboxes for these values in the CustomQuery page. I have tried both with java script enabled and disabled.
Attachments (0)
Change History (4)
comment:1 by , 19 years ago
Status: | new → assigned |
---|
comment:2 by , 19 years ago
Keywords: | workflow added |
---|---|
Milestone: | 0.10 → 0.11 |
comment:3 by , 19 years ago
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.
class CoolStuff(Component): implements(ITicketEnumContributor) def get_enumerated_field_values(self, enum_type): values = {'ticket_type': ['wish'], 'status': ['retest']} return values.get(enum_type, [])
comment:4 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Automatic addition of states defined in [ticket-status]
added in r3064.
This is a known limitation at the moment. Basically, the new states need to be inserted into the database, or otherwise made available through the model API.
You can do this manually for now with judicious application of SQL inserts :)