Hi,

As a taste of what is possible with the new code, I've updated the
tracticketmojo plugin [1] to the new API.

This plugin implements three components, the first of which adds a
'delete ticket' action (which doesn't actually delete - proof of
concept).

The second component adds a 'progress' field type (which other plugins,
or users via custom fields, can use). 

The third component (TicketProgress) removes the 'resolve: fixed' action
and replaces it with a 'complete: x/100' action. If this value is set to
100 and the action applied, the ticket is closed as fixed. The plugin
also intercepts state transitions made by other actions to/from closed,
and resets the progress to 0.

Enable with:
    
    [components]
    tracticketmojo.* = enabled

To delete tickets you need TICKET_ADMIN.

To add a custom progress field try something like this:

    [ticket-custom]
    complete = test
    complete.label = % complete
    complete.title = Percentage of ticket completed
    ; 100 is the default, but shown for illustration
    complete.total = 100

Alec

[1] http://swapoff.org/files/tracticketmojo-0.2-py2.4.egg

-- 
Evolution: Taking care of those too stupid to take care of themselves.
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to