Opened 6 years ago

#4720 new enhancement

Special state if owner is the reporting user (PATCH)

Reported by: holger-juergs@… Owned by: ixokai
Priority: normal Component: TicketCreationStatusPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


Very nice plugin working fine.

I have added a feature handling a new ticket where the reporting user is the owner.

I was in need of sperating two cases to reduce handling "own" tickets

  • there is any owner not me: state will be assigned
  • I am the owner of the new ticket: state will be accepted

Therefore an new option is added

owned_by_user = accepted

which has the highest priority.


    1111    owned_status = Option('ticketcreationstatus', 'owned', None,  
    1212        doc="""Determines the status for tickets that start out owned.""") 
     14    owned_by_user_status = Option('ticketcreationstatus', 'owned_by_user', None, 
     15        doc="""Determines the status for tickets that start out owned by user.""") 
     17    # ITicketChangeListener methods 
    1419    def ticket_created(self, ticket): 
    1520        status = None 
    16         if self.owned_status:      
     21        if self.owned_by_user_status: 
     22            if ticket['owner'] == ticket['reporter']:  
     23                status = self.owned_by_user_status 
     25        if not status and self.owned_status:      
    1726            if ticket['owner']: 
    1827                status = self.owned_status 

Attachments (1) (807 bytes) - added by holger-juergs@… 6 years ago.
additional option owned_by_user

Download all attachments as: .zip

Change History (1)

Changed 6 years ago by holger-juergs@…

additional option owned_by_user

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.