Modify

Opened 13 years ago

Closed 13 years ago

#55 closed enhancement (fixed)

Set Ticket Type

Reported by: greg.deakyne@… Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 0.13
Keywords: Cc:

Description

  • Is there a way to set the default ticket type when using the email2trac? I want the user interface of trac to use a different default ticket type and the email2trac to use a different type.

Attachments (0)

Change History (8)

comment:1 Changed 13 years ago by bas

  • Status changed from new to assigned
  • Type changed from setup to enhancement

No only the default component can be set at this moment. I can add ticket_type : <value> as configuration parameter. Is this what you need.

comment:2 Changed 13 years ago by greg.deakyne@…

  • That would be awesome and very helpful. This way, you can have different emails for defects and enhancements.

comment:3 Changed 13 years ago by bas

oke i will put in on my todo list. I let you know when commit it to the trunk version.

comment:4 Changed 13 years ago by StefanC

is there a way to have different priorities/version/component for different project in a similar way?

for instance for one email

[project_A] my-project@… ticket.component = my-project ticket.priority = minor

[project_B] my-seoncd-project@… ticket.component = my-seoncd-project ticket.priority = major

comment:5 Changed 13 years ago by bas

For component it is already possible, see docs:

  • email2trac --component=<value>

For the others is not possible at this moment. Maybe i will add command line switches for the different fields. So you can have multiple aliases with different settings for the ticket fields. When the specification is in email2trac.conf. You can only have two values:

  • one via the website
  • one via email2trac

or make a command line switch --ticket-defaults developer and then in email2trac.conf:

[email2trac]
developer : component:software, priority:normal, ....

The last option is the most portable and we do not have to write a lot of command line options.

comment:6 Changed 13 years ago by bas

Just added this feature to trunk. Basic usage is the same as trac.ini. You have to specify in email2trac.conf for eg project 'test':

[test]
default_type : test
default_componet: email

the values are checked if they are allowed values for the field if not the default value is used.

comment:7 Changed 13 years ago by bas

Sorry is not complete. You can also use:

email2trac --ticket_prefix email --project test 

This wil scan 'email2trac.conf' for 'email_"ticket_field_nam", eg:

[test]
email_type :  

So you can use different email addresses wih different ticket settings for the same project

comment:8 Changed 13 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

close ticket is implemented in trunk

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.