[[PageOutline(2-5,Contents,pullout)]] = New Ticket Like This == Description This plugin adds a "Clone" button to existing tickets, which lets you create a new ticket of which the fields are derived from the original ticket if you have the appropriate permission. By default this will add the "Clone" button to the ticket view, and will use the `SimpleTicketCloner` component to clone your tickets. The `TICKET_ADMIN` permission will be required for cloning tickets. It is based on the `tracopt.ticket.clone.ticketclonebutton` extension that ships with Trac core. Unlike that extension, the NewTicketLikeThisPlugin defines and consumes a pluggable interface for implementing custom policies to determine the way in which a new ticket is derived from the original. This allows flexible, customized business logic to be provided based on the needs and workflows of your team. Also, this plugin allows you to configure the permission required to clone a ticket, whereas the core `ticketclonebutton` hard-codes the `TICKET_ADMIN` permission. Two policies are provided by default in the `newticketlikethis.policies` module: * !SimpleTicketCloner mimics the behavior of the core `tracopt.ticket.clone.ticketclonebutton` extension: all fields from the original ticket are cloned, and the "summary" and "description" fields are modified to denote the ticket that they were cloned from. * !ExcludedFieldsTicketCloner clones all fields from the original ticket with no modifications. It can also ignore certain fields entirely, based on a configuration setting, which will generate the ticket with the system's default values (or no values) for the fields that were excluded. More complex policies might implement custom logic for deriving new ticket values based on the values of the existing ticket's fields, or use alternate cloning policies based on the ticket's type. See also: WikiCreateTicketPlugin, TracDupPlugin, TicketToTracScript, DuplicateTicketSearchPlugin == Bugs/Feature Requests Existing bugs and feature requests for NewTicketLikeThisPlugin are [report:9?COMPONENT=NewTicketLikeThisPlugin here]. If you have any issues, create a [/newticket?component=NewTicketLikeThisPlugin new ticket]. [[TicketQuery(component=NewTicketLikeThisPlugin&group=type,format=progress)]] == Download Download the zipped source from [https://github.com/trac-hacks/trac-NewTicketLikeThisPlugin/tags here]. == Source You can clone NewTicketLikeThisPlugin from [git://github.com/trac-hacks/trac-NewTicketLikeThisPlugin.git here] using Git, or [https://github.com/trac-hacks/trac-NewTicketLikeThisPlugin browse the source] with Github. == Installation General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. To use the plugin, install it in your Trac environment and enable it in your `trac.ini` file: {{{#!ini [components] newticketlikethis.* = enabled }}} == Recent Changes [[ChangeLog(newticketlikethisplugin, 3)]] == Author/Contributors '''Author:''' [wiki:ejucovy] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''