Last year we introduced a setting to default a default assignee for new messages. Today we made that setting dynamic.

The default assignee can be overridden with a few lines of JavaScript. Here’s an example:

if ($message.emailTo == 'billing@yourdomain.com') {
  return findTeamMemberByNickname('John');
}

You’ll find that settings at the bottom of your ‘Teams’ section.

Of course you can also test your script. Simply press the ‘Test Script’ button at the bottom.