Mailbox Integration & Multiple Projects

I've setup mailbox integration with a new email account we created issues@somedomain.com. Now I want to have feedback and bug reports for two different projects created in YouTrack. How do I determine what project an emailed issue should be assigned to based on the email. It appears that I can only choose to assign all the emailed issues from issues@somedomain.com to a single project. Is there a way around this without having to create multiple new email addresses like project1issues@somedomain.com and project2issues@somedomain.com?

Thanks for any feedback,

Jeremy
1 comment
Comment actions Permalink
Hi Jeremy,

1. Mailbox settings.
If your mailbox supports filters and folders, you can create 2 folders and separate incoming letters using 2 filters rules (for bugs and feedback). In Youtrack you can specify 'Folder' on 'Mail rule' > 'Filter' tab.

2. Youtrack settings only.
Since 4.0 you can use workflow rules that assign appropriate project to incoming issue.

Bugs:
rule bug
 
when summary.contains("bug", opts) && becomesReported() { 
  project = {project: Bugs}; 
}
prettyPrint();

And feedback:
rule feedback
 
when summary.contains("feedback", opts) && becomesReported() { 
  project = {project: Feedback}; 
}
prettyPrint();
0

Please sign in to leave a comment.