From: Geoffrey Thomas Date: Tue, 23 Feb 2010 23:34:55 +0000 (-0500) Subject: TracZephyrPlugin: Display the priority of new tickets. X-Git-Url: https://sipb.mit.edu/gitweb.cgi/snippets/.git/commitdiff_plain/c00679cc6c05e24935d03cf4e786cf41428ad5fd?hp=c0df155c9b3c4287ea11289f71f63ae7ebb1f360 TracZephyrPlugin: Display the priority of new tickets. Signed-off-by: Geoffrey Thomas --- diff --git a/TracZephyrPlugin/ZephyrPlugin.py b/TracZephyrPlugin/ZephyrPlugin.py index 679d019..88b9ec2 100644 --- a/TracZephyrPlugin/ZephyrPlugin.py +++ b/TracZephyrPlugin/ZephyrPlugin.py @@ -35,9 +35,10 @@ class ZephyrPlugin(Component): return '\n'.join(lines) def ticket_created(self, ticket): - message = "%s filed a new ticket:\n%s\n\n%s" % (ticket['reporter'], - ticket['summary'], - self.format_text(ticket['description'])) + message = "%s filed a new %s ticket:\n%s\n\n%s" % (ticket['reporter'], + ticket['priority'], + ticket['summary'], + self.format_text(ticket['description'])) self.zwrite(ticket.id, message) def ticket_changed(self, ticket, comment, author, old_values):