Changes between Version 8 and Version 9 of CannedResponsesPlugin


Ignore:
Timestamp:
May 13, 2015, 8:57:30 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes, t

Legend:

Unmodified
Added
Removed
Modified
  • CannedResponsesPlugin

    v8 v9  
    11[[PageOutline(2-5,Contents,pullout)]]
    2 = Canned Responses Plugin =
    32
    4 == Description ==
     3= Canned Responses Plugin
    54
    6 The CannedResponsesPlugin allows a trac administrator to specify a list of "Canned Responses" for those with the appropriate permissions to use in responding to tickets.
     5== Description
    76
    8 Each canned response can change the status of a ticket, as well as modify the resolution and add a comment.  Each response can also be restricted to users with specific permissions.  For example, you may wish to have a response that only users with `TICKET_ADMIN` permissions can use and another which anyone with `TICKET_MODIFY` or greater permissions can use.
     7This plugin allows a Trac administrator to specify a list of "Canned Responses" for those with the appropriate permissions to use in responding to tickets.
     8
     9Each canned response can change the status of a ticket, as well as modify the resolution and add a comment. Each response can also be restricted to users with specific permissions. For example, you may wish to have a response that only users with `TICKET_ADMIN` permissions can use and another which anyone with `TICKET_MODIFY` or greater permissions can use.
    910
    1011Canned responses will appear as an option in the Action box at the bottom of a ticket for those with the permissions to use any of the available canned responses.
    1112
    12 == Bugs/Feature Requests ==
     13== Bugs/Feature Requests
    1314
    1415Existing bugs and feature requests for CannedResponsesPlugin are [report:9?COMPONENT=CannedResponsesPlugin here].
     
    1617If you have any issues, create a [/newticket?component=CannedResponsesPlugin&owner=rekkanoryo new ticket].
    1718
    18 == Installation ==
    19 Grab the latest egg from [http://www.guifications.org/~rekkanoryo/trac/CannedResponsesPlugin/ here] and place it in your trac environment's `plugins` directory.  These eggs are currently cooked for Python 2.5; if you're using a different Python version, you'll need to grab the source as described below.
     19[[TicketQuery(component=CannedResponsesPlugin&group=type,format=progress)]]
    2020
    21 == Source ==
     21== Source
    2222
    2323You can check out the source of the CannedResponsesPlugin from [https://bitbucket.org/rw_grim/extras here] using Mercurial, as well as browse it at the same place.
    2424
    25 If you wish not to install Mercurial but still want the source, click the link above to view the source.  Then look at the tags listed near the bottom of the page.  The tags will always show the plugin's name and version number.  Click the "changeset" link next to that tag name.  There will be a "zip" and a "gz" link at the top of the page.  Either of those links will give you an archive of the source.  (If you want the development source, you can click the "tip" icon and use the "zip" or "gz" links at the top of that page instead).
     25If you wish not to install Mercurial but still want the source, click the link above to view the source. Then look at the tags listed near the bottom of the page. The tags will always show the plugin's name and version number. Click the "changeset" link next to that tag name. There will be a "zip" and a "gz" link at the top of the page. Either of those links will give you an archive of the source.
    2626
    27 == Example ==
     27If you want the development source, you can click the "tip" icon and use the "zip" or "gz" links at the top of that page instead.
    2828
    29 To enable the plugin, install it to your trac's plugins directory and add the following to your trac.ini:
    30 {{{
    31 #!ini
     29== Installation
     30
     31Grab the latest egg from [http://www.guifications.org/~rekkanoryo/trac/CannedResponsesPlugin/ here] and place it in your trac environment's `plugins` directory. These eggs are currently cooked for Python 2.5. If you are using a different version of Python, you will need to grab the source as described in the previous section.
     32
     33== Example
     34
     35To enable the plugin, install it to your Trac's plugins directory and add the following to your `trac.ini` file:
     36{{{#!ini
    3237[components]
    3338cannedresponses.* = enabled
     
    3540
    3641To add canned responses, choose a short name, then add attributes like so:
    37 {{{
    38 #!ini
     42{{{#!ini
    3943[canned-responses]
    4044pluginreq = new,pending -> new
    41 pluginreq.comment = This request is best implemented as a plugin.  This ticket remains open as an invitation for someone to write a plugin fulfilling the request.
     45pluginreq.comment = This request is best implemented as a plugin. This ticket remains open as an invitation for someone to write a plugin fulfilling the request.
    4246pluginreq.milestone = Plugin Suggested
    4347pluginreq.type = plugin request
     
    4549pluginreq.permissions = TICKET_MODIFY
    4650}}}
    47 The above example creates a canned response that sets a ticket to the closed status, sets the resolution to invalid, and adds the comment "This issue is caused by a third party plugin.  We have no control over these plugins.  Please report this problem to the authors of this third party plugin."  The canned response is available to any user with at least TICKET_MODIFY permissions, including TICKET_ADMIN and TRAC_ADMIN.
     51
     52The above example creates a canned response that sets a ticket to the closed status, sets the resolution to invalid, and adds the stated comment. The canned response is available to any user with at least `TICKET_MODIFY` permissions, including `TICKET_ADMIN` and `TRAC_ADMIN`.
    4853
    4954Notes:
    50   * The line `pluginreq = new,pending -> new` specifies, as a comma-delimited list, the statuses a ticket may have for using this canned response and the status the ticket will be set to.  This can be any status a ticket can have.
     55  * The line `pluginreq = new,pending -> new` specifies, as a comma-delimited list, the statuses a ticket may have for using this canned response and the status the ticket will be set to. This can be any status a ticket can have.
    5156  * The 'name' attribute provides a "pretty name" for users to see in the list of canned responses.
    52   * The 'comment' attribute specifies, in WikiFormatting, the text of the comment to be added.  Anything inserted into the comment field at the same time as applying a canned response will be retained and placed after the canned response, with a `[[BR]]` between the canned response text and the user's comment text.
     57  * The 'comment' attribute specifies, in WikiFormatting, the text of the comment to be added. Anything inserted into the comment field at the same time as applying a canned response will be retained and placed after the canned response, with a `[[BR]]` between the canned response text and the user's comment text.
    5358  * The 'resolution' attribute specifies the resolution to use on the ticket when closing.
    5459  * The 'permissions' attribute specifies the minimum level of permissions required to see and use the response.
    5560  * The 'milestone' attribute (new in plugin version 0.11.1) allows you to specify the milestone to change the ticket to.
    5661  * The 'type' attribute (new in plugin version 0.11.1) allows you to specify a ticket type to change the ticket to.
    57   * Be careful with spelling, as there is no validation.  If you make a spelling mistake you could cause a Python exception or cause tickets to be set to statuses, resolutions, types, or milestones that don't exist.
     62  * Be careful with spelling, as there is no validation. If you make a spelling mistake, you could cause a Python exception or cause tickets to be set to statuses, resolutions, types, or milestones that don't exist.
    5863
    59 == Author/Contributors ==
     64== Author/Contributors
    6065
    6166'''Author:''' Daniel Atallah [[BR]]
    62 '''Maintainer:''' [wiki:rekkanoryo] [[BR]]
     67'''Maintainer:''' [[Maintainer]] [[BR]]
    6368'''Contributors:'''