TracZephyrPlugin: Display the priority of new tickets.
authorGeoffrey Thomas <geofft@mit.edu>
Tue, 23 Feb 2010 23:34:55 +0000 (18:34 -0500)
committerGeoffrey Thomas <geofft@mit.edu>
Tue, 23 Feb 2010 23:34:55 +0000 (18:34 -0500)
Signed-off-by: Geoffrey Thomas <geofft@mit.edu>
TracZephyrPlugin/ZephyrPlugin.py

index 679d019f962274877cc4bfb63e32cd3a905b6be8..88b9ec219c7d57e3d696f716953483819e829288 100644 (file)
@@ -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):