Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (211 - 213 of 332)

Ticket Resolution Summary Owner Reporter
#221 fixed Add email Cc list to the Trac ticket Cc list bas smcbutler
Description

Hi, I'd like to auto-add the Cc: users in an email to the Cc: list on the resulting Trac ticket. Is this possible?

thx for a great plugin!

#222 invalid Wrong number of the new ticket comment bas stas.agarkov@…
Description

This is error:

# How many changes has this ticket
cnum = len(tkt.get_changelog())

All right:

# How many changes has this ticket
cnum = len(tkt.get_changelog())+1
#223 fixed Incorrectly sets the number of comments bas stas.agarkov@…
Description

email2trac incorrectly sets the number of comments, because it is based on a number of changes to the table ticket_change. trac uses the TicketModule?.grouped_changelog_entries, which returns a list of changes, in which simultaneous changes are grouped into one that is as it appears in the trac. Your code:

## How many changes has this ticket
#
cnum = len(tkt.get_changelog())

Right code:

# How many changes has this ticket
from trac.ticket.web_ui import TicketModule
grouped = TicketModule(self.env).grouped_changelog_entries(tkt, self.db)
cnum = sum(1 for e in grouped) + 1
Note: See TracQuery for help on using queries.