Changes between Initial Version and Version 1 of NewTicketLikeThisPlugin


Ignore:
Timestamp:
Jan 6, 2012, 3:22:07 PM (12 years ago)
Author:
ejucovy
Comment:

New hack NewTicketLikeThisPlugin, created by ejucovy

Legend:

Unmodified
Added
Removed
Modified
  • NewTicketLikeThisPlugin

    v1 v1  
     1[[PageOutline(2-5,Contents,pullout)]]
     2
     3= New Ticket Like This =
     4
     5== Description ==
     6
     7The NewTicketLikeThisPlugin adds a "Clone" button to existing tickets,
     8which lets you create a new ticket whose fields derive from the original
     9ticket if you have the appropriate permission.
     10
     11It is based on the tracopt.ticket.clone.ticketclonebutton extension that
     12ships with Trac core.  Unlike that extension, the NewTicketLikeThisPlugin
     13defines and consumes a pluggable interface for implementing custom policies
     14to determine the way in which a new ticket is derived from the original.
     15This allows flexible, customized business logic to be provided based on
     16the needs and workflows of your team.  Also, the NewTicketLikeThisPlugin
     17allows you to configure the permission required to clone a ticket, whereas
     18the core ``ticketclonebutton`` hard-codes the TICKET_ADMIN permission.
     19
     20Two policies are provided by default, in the ``newticketlikethis.policies``
     21module:
     22
     23* ``SimpleTicketCloner`` mimics the behavior of the
     24  ``core tracopt.ticket.clone.ticketclonebutton`` extension: all fields
     25  from the original ticket are cloned, and the "summary" and "description"
     26  fields are modified to denote the ticket that they were cloned from.
     27
     28* ``ExcludedFieldsTicketCloner`` clones all fields from the original ticket
     29  with no modifications.  It can also ignore certain fields entirely,
     30  based on a configuration setting, which will force the new ticket to be
     31  generated with the system's default values (or no values) for the fields
     32  that were excluded.
     33
     34More complex policies might implement custom logic for deriving new ticket
     35values based on the values of the existing ticket's fields, or use
     36alternate cloning policies based on the ticket's type.
     37
     38
     39== Bugs/Feature Requests ==
     40
     41Existing bugs and feature requests for NewTicketLikeThisPlugin are
     42[report:9?COMPONENT=NewTicketLikeThisPlugin here].
     43
     44If you have any issues, create a
     45[http://trac-hacks.org/newticket?component=NewTicketLikeThisPlugin&owner=ejucovy new ticket].
     46
     47== Download ==
     48
     49Download the zipped source from [download:newticketlikethisplugin here].
     50
     51== Source ==
     52
     53You can check out NewTicketLikeThisPlugin from [http://trac-hacks.org/svn/newticketlikethisplugin here] using Subversion, or [source:newticketlikethisplugin browse the source] with Trac.
     54
     55== Example ==
     56
     57To use the plugin, install it in your Trac environment and enable its
     58components in ``trac.ini``::
     59
     60  [components]
     61  newticketlikethis.* = enabled
     62
     63By default this will add the "Clone" button to the ticket view, and
     64will use the ``SimpleTicketCloner`` component to clone your tickets.
     65The ``TICKET_ADMIN`` permission will be required for cloning tickets.
     66
     67
     68== Recent Changes ==
     69
     70[[ChangeLog(newticketlikethisplugin, 3)]]
     71
     72== Author/Contributors ==
     73
     74'''Author:''' [wiki:ejucovy] [[BR]]
     75'''Maintainer:''' [wiki:ejucovy] [[BR]]
     76'''Contributors:'''