[Trac-tickets] [The Trac Project] #2045: Ticket should be immediately 'assigned' after creation when assigned to the reporter

The Trac Project noreply at edgewall.com
Sun Sep 11 12:29:33 CDT 2005


#2045: Ticket should be immediately 'assigned' after creation when assigned to the
reporter
---------------------------+------------------------------------------------
 Reporter:  cboos          |       Owner:  cboos
     Type:  enhancement    |      Status:  new  
 Priority:  low            |   Milestone:       
Component:  ticket system  |     Version:  devel
 Severity:  trivial        |   Keywords:                 |  
---------------------------+------------------------------------------------
 Long time ago, on the mailing list, I proposed a patch
 to immediately set the status of a newly created ticket
 to "assigned" if the reporter and the assignee are the
 same person.

 This saves one step, as the next logical step would be
 to "accept" the ticket that the reporter has just created
 for himself.

 Therefore I propose the patch once again, for discussion:

 {{{
 #!diff
 Index: model.py
 ===================================================================
 --- model.py    (revision 2202)
 +++ model.py    (working copy)
 @@ -142,6 +142,11 @@
                  # Assume that no such component exists
                  pass

 +        # If the owner creates the ticket, status is directly 'assigned'
 +        owner = self.values.get('owner')
 +        if owner and owner == self.values.get('reporter'):
 +            self['status'] = 'assigned'
 +
          # Insert ticket record
          std_fields = [f['name'] for f in self.fields if not
 f.get('custom')
                        and f['name'] in self.values.keys()]
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2045>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list