Opened 2 years ago

Closed 2 years ago

#10692 closed enhancement (fixed)

Make ticket's old data available somehow

Reported by: ejucovy Owned by: ejucovy
Priority: high Component: WorkflowNotificationPlugin
Severity: normal Keywords:
Cc: Trac Release:


Currently the plugin only has access to the values of the ticket's attributes after the workflow action has been applied.

It would be nice if it could also provide access to the ticket's old values somehow. Without access to the old values, it's impossible to recreate Trac's core "ticket change" notifications using this plugin.

This should be possible to do, because the plugin's ITicketActionController.get_ticket_changes method is called, before any changes are applied, in the same request that then calls .apply_action_side_effects. So during that method, we could retrieve the ticket's values, before changes are applied, and stash them somewhere, probably on the request.

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by ejucovy

  • Resolution set to fixed
  • Status changed from new to closed

Implemented in this commit.

Add Comment

Modify Ticket

as closed The owner will remain ejucovy.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.