Mailing List Archive

[patch] A ticket should be created in 'assigned' state when the reporter assigns it to himself
This is a small change to the current workflow, which makes sense in
most cases:
I can't see the reasons why a reporter would not accept a ticket that he
just created
and assigned to himself.

-- CB

Index: trac/Ticket.py
===================================================================
--- trac/Ticket.py (revision 923)
+++ trac/Ticket.py (working copy)
@@ -270,6 +270,11 @@
owner = cursor.fetchone()[0]
ticket['owner'] = owner

+ # "Auto-assign":
+ # The status will be set to 'assigned' if the reporter is also
the owner
+ if ticket['owner'] == ticket['reporter']:
+ ticket['status'] = 'assigned'
+
tktid = ticket.insert(self.db)

# Notify