Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#2898 closed defect (fixed)

sandbox/workflow custom query missing status and resolution options

Reported by: tscanlan@… 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 Alec Thomas, 18 years ago

Status: newassigned

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 :)

comment:2 by Alec Thomas, 18 years ago

Keywords: workflow added
Milestone: 0.100.11

comment:3 by Alec Thomas, 18 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 Alec Thomas, 18 years ago

Resolution: fixed
Status: assignedclosed

Automatic addition of states defined in [ticket-status] added in r3064.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Alec Thomas to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.