Changes between Version 3 and Version 4 of CannedResponsesPlugin
- Timestamp:
- Apr 29, 2009, 10:19:57 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CannedResponsesPlugin
v3 v4 35 35 {{{ 36 36 [canned-responses] 37 tpp = new,pending -> closed 38 tpp.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. 39 tpp.resolution = invalid 40 tpp.name = Third Party Plugin 41 tpp.permissions = TICKET_MODIFY 37 pluginreq = new,pending -> new 38 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. 39 pluginreq.milestone = Plugin Suggested 40 pluginreq.type = plugin request 41 pluginreq.name = Better As Plugin 42 pluginreq.permissions = TICKET_MODIFY 42 43 }}} 43 44 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. 44 45 45 46 Notes: 46 * The line ` tpp = new,pending -> closed` specifiesthe statuses a ticket may have for using this canned response and the status the ticket will be set to.47 * The line `pluginreq = new,pending -> closed` 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. 47 48 * The 'name' attribute provides a "pretty name" for users to see in the list of canned responses. 48 49 * 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. 49 50 * The 'resolution' attribute specifies the resolution to use on the ticket when closing. 50 51 * The 'permissions' attribute specifies the minimum level of permissions required to see and use the response. 52 * The 'milestone' attribute (new in 0.11.1) allows you to specify the milestone to change the ticket to. 53 * The 'type' attribute (new in 0.11.1) allows you to specify a ticket type to change the ticket to. 54 * 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 resolutions or milestones that don't exist. 51 55 52 56 == Author/Contributors ==