Move Trac tickets from one project to another

Description

Move Trac tickets from one project to another in the same environment directory. Install and enable the plugin and in the ticket sidebar controls will be shown to anyone with TICKET_ADMIN permission (by default) to move the ticket to another peer project where the user also has TICKET_ADMIN permissions.

I probably would have used the DatamoverPlugin (now deprecated), but this didn't work for Trac 0.11. TicketMoverPlugin also handles ticket attachments.

Bugs/Feature Requests

Existing bugs and feature requests for TicketMoverPlugin are here.

If you have any issues, create a new ticket.

Requirements

This plugin requires TicketSidebarProviderPlugin and TracSqlHelperScript.

Installation

Download the zipped source from here.

You can also check out TicketMoverPlugin from here using Subversion, or browse the source with Trac.

Enable the plugin:

[components]
ticketmoverplugin.ticketmover.ticketmover = enabled
ticketmoverplugin.web_ui.ticketmoverhandler = enabled
ticketmoverplugin.web_ui.ticketmoversidebar = enabled

Also make sure that the TicketSidebarProviderPlugin is enabled in the [components] section of your trac.ini:

ticketsidebarprovider.ticketsidebar.ticketsidebarprovider = enabled

Project on Remote Server

lkraav: I had a use case where I needed to move tickets between Tracs on two different machines. TicketMoverPlugin does not support this natively. To solve this, I mounted remote Trac project directory into a directory residing next to the local project directory over CIFS (certainly NFS or other network FS should work). This makes remote Trac appear local to TicketMoverPlugin and tickets were moved without errors. (10/06/09)

Example

See screenshot:

screenshot of the TicketMoverPlugin

If you have permissions, a box will show up allowing you to move the current ticket to a different project. If you check the delete checkbox, the ticket will also be deleted from the database, though this is not recommended in most cases. If you don't delete the ticket, it will be closed with a resolution of moved.

Recent Changes

[12984] by rjollos on 04/19/13 18:30:50

Refs #7262: Point setup,py link to TracSqlHelperScript 0.11 directory rather than anyrelease directory.

[12956] by rjollos on 04/05/13 00:06:06

Fixes #7496: Perform an explict cast of ticket_id to a string to avoid a programming error on PostgreSQL, where strict type checking is done. Prevent possibility of SQL injection since ticket_id comes from the request.

[12955] by rjollos on 04/05/13 00:05:48

PEP8 formatting changes. Cleanup file and remove references to ClearSilver templates in documentation.

[12863] by jun66j5 on 04/02/13 21:32:22

TicketMoverPlugin: fix #11000: leaking resources caused by open_environment

Author/Contributors

Originally developed at The Open Planning Project

Author: k0s
Maintianer: none
Contributors:

Attachments