Changes between Version 10 and Version 11 of WorkflowNotificationPlugin
- Timestamp:
- Jan 30, 2013, 1:57:02 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkflowNotificationPlugin
v10 v11 87 87 [ticket-workflow-notifications] 88 88 notify_reporter_when_accepted = accept 89 notify_reporter_when_accepted.body = Hi $ ticket.reporter, '$ticket.summary' has been accepted \nby $change.author. Its status is now $ticket.status. \n\n{% if change.comment %}$change.author said:\n$change.comment{% end %}\n-----\nTicket URL: $link\n$project.name <${project.url or abs_href()}>\n$project.descr\n90 notify_reporter_when_accepted.recipients = $ ticket.reporter, trac-admin@hostname.com, trac_user91 notify_reporter_when_accepted.subject = '$ ticket.summary' is now accepted89 notify_reporter_when_accepted.body = Hi ${ticket.reporter}, '${ticket.summary}' has been accepted \nby ${change.author}. Its status is now ${ticket.status}. \n\n{% if change.comment %}${change.author} said:\n${change.comment}{% end %}\n-----\nTicket URL: ${link}\n${project.name} <${project.url or abs_href()}>\n${project.descr}\n 90 notify_reporter_when_accepted.recipients = ${ticket.reporter}, trac-admin@hostname.com, trac_user 91 notify_reporter_when_accepted.subject = '${ticket.summary}' is now accepted 92 92 }}} 93 93 … … 118 118 current state AFTER the workflow action has been applied); the author 119 119 and comment of the current change, if any; a link to the ticket as 120 `$ link`; and the project.120 `${link}`; and the project. 121 121 122 122 All of these must be defined for each notification; the plugin will … … 131 131 {{{ 132 132 #!ini 133 notify_reporter_when_accepted.recipients = $ ticket.reporter, trac-admin@hostname.com, trac_user133 notify_reporter_when_accepted.recipients = ${ticket.reporter}, trac-admin@hostname.com, trac_user 134 134 }}} 135 135 … … 151 151 [ticket-workflow-notifications] 152 152 when_fixed = resolve 153 when_fixed.body = Ticket $ ticket.id has been fixed! View it here: $link154 when_fixed.subject = Ticket $ ticket.idis fixed!155 when_fixed.recipients = $ ticket.cc153 when_fixed.body = Ticket ${ticket.id} has been fixed! View it here: ${link} 154 when_fixed.subject = Ticket ${ticket.id} is fixed! 155 when_fixed.recipients = ${ticket.cc} 156 156 when_fixed.condition = ${ticket.resolution == 'fixed'} 157 157 }}} … … 182 182 [ticket-workflow-notifications] 183 183 new_ticket = @created 184 new_ticket.body = New ticket $ ticket.summaryhas been created185 new_ticket.recipients = $ ticket.owner184 new_ticket.body = New ticket ${ticket.summary} has been created 185 new_ticket.recipients = ${ticket.owner} 186 186 new_ticket.subject = New ticket created 187 187 }}} … … 197 197 [ticket-workflow-notifications] 198 198 ticket_changed = * 199 ticket_changed.body = View the ticket here: $ link199 ticket_changed.body = View the ticket here: ${link} 200 200 ticket_changed.recipients = watchful_user, another_watchful_user 201 ticket_changed.subject = Ticket $ ticket.idhas changed!201 ticket_changed.subject = Ticket ${ticket.id} has changed! 202 202 }}} 203 203 … … 219 219 #!ini 220 220 same_status = leave 221 same_status.body = View the ticket here: $ link221 same_status.body = View the ticket here: ${link} 222 222 same_status.recipients = watchful_user, another_watchful_user 223 same_status.subject = Ticket $ ticket.idhas been edited!223 same_status.subject = Ticket ${ticket.id} has been edited! 224 224 }}} 225 225 … … 237 237 [ticket-workflow-notifications] 238 238 ticket_changed = * 239 ticket_changed.body = Ticket changed by $ change.author: $change.comment\n\n{% for field in old_ticket %}{% if old_ticket[field] != ticket[field] %}\n$fieldchanged: ${old_ticket[field]} => ${ticket[field]}{% end %}{% end %}240 ticket_changed.recipients = $ ticket.reporter241 ticket_changed.subject = Ticket $ ticket.idhas changed!239 ticket_changed.body = Ticket changed by ${change.author}: ${change.comment}\n\n{% for field in old_ticket %}{% if old_ticket[field] != ticket[field] %}\n${field} changed: ${old_ticket[field]} => ${ticket[field]}{% end %}{% end %} 240 ticket_changed.recipients = ${ticket.reporter} 241 ticket_changed.subject = Ticket ${ticket.id} has changed! 242 242 }}} 243 243 … … 247 247 248 248 [{{ 249 notice.body = Notification for ticket $ ticket.id: $link\n\n\n\nThis is a notification.249 notice.body = Notification for ticket ${ticket.id}: ${link}\n\n\n\nThis is a notification. 250 250 }}} 251 251