Table of Contents |
---|
...
Email This Issue Mail Handlers add a lot more on to this, in order to implement sophisticated email processing:
- Initialize issue fields from email content
- Execute workflow transitions
- Filter emails depending on content (e.g. spam)
- Save Senders and Recipients to custom fields
- Content splitting on multiple regular expressions
- Send auto-reply emails
Note |
---|
As of now (version 8.0.4.1) there are two kinds of Email this issue mail handlers: Classic and Next-gen mail handlers. This documentation is for configuring Classic mail handlers. For the next-gen documentation, please follow this link. |
Configure Classic Mail Handlers
Classic Email This Issue Mail Handlers are composed of two components. The two basic steps to configure a mail handler are:
...
Note | ||
---|---|---|
| ||
If a Mail Handler Context is not added, one is created upon the first email being processed with default settings. |
The handler type must be set to Email This Issue Mail handler in Jira.
Below is an example for Jira's Incoming Mail Handler with Email This Issue Mail Handler exampletype:
Mail Handler Contexts
...
Mail Handler Contexts are used in conjunction with the JETI Mail Handlers. If you set up the handler to create issues in the project "MyProject" of issue type "Bug", there must be a Mail Handler Context configured to match this combination, e.g. a Mail Handler Context configured with project "MyProject" or issue type "Bug" or both.
Mail Handler Context Attributes
Attribute | Description | Required | ||
---|---|---|---|---|
ProjectScope | Project: to which the context applies. If left empty, context applies to all projects. Issue Type: to which the context applies. If left empty, context applies to all issue types. | |||
Issue Type | Issue Type: to which the context applies. If left empty, context applies to all issue types. | |||
Email Processing Strategy | Determines how Email This Issue Mail Handler processes incoming emails. There are various strategies available out-of-the-box:
All strategies also do the following (if configured to do so):
| |||
Mail Handler Event | An issue event that is fired for each incoming email that the mail handler processes. | |||
Acknowledge New Issues | If an email template is selected here, it will be used to generate auto-acknowledge emails when a new issue is created from an email. | |||
Acknowledge New Comments | If an email template is selected here, it will be used to generate auto-acknowledge emails when a new comment is added to an issue from an email. | |||
User Recipients | This attribute determines how the mail handler should treat users recognized as recipient email addresses. Options are:
| |||
Sender Field | The custom field selected here will be used to store email addresses of the email's senders | |||
Recipient Field | The custom field selected here will be used to store email addresses of the email's recipients | |||
Copy Recipient Field | The custom field selected here will be used to store email addresses of the email's CC recipients | |||
Email Address Exclusion | Email addresses (one per line) entered here are not saved in the sender or recipient fields. Supports regular expressions, to ensure your email address exclusion will not run into problems. Include (?i) at the beginning of the email address for safety. | |||
Split Regex | Regular expressions (one per line) entered here are used to split the email body by a delimiter. See more details below. | |||
Jira Mail Strategy | Specifies how to treat emails sent from the current or another Jira instance. Options are available to accept or ignore these emails.
| |||
Ignore Issue ID in Email Headers | By default, Email This Issue checks for the "In-Reply-To" and "References" email headers for Jira IDs if no issue keys appear in the email subject. If such an issue ID is found, it comments the issue. By enabling this option you can override the default behavior and make JETI ignore these email headers. It can be useful to prevent confusion when an email sent from Jira is replied or forwarded back to Jira. In such cases, the seemingly unrelated issues may be commented on. If this checkbox is turned on, JETI will only use the email subject and its own Issue Lookup Field Rules to process emails but will ignore the invisible email headers. | |||
External Email Senders | Specify how to treat emails sent from email addresses not registered as users in Jira. Options are to accept the mails for processing or to ignore (leave in the mailbox) these emails. If you want to prevent the situation that practically anyone could pollute your Jira instance by sending emails, simply set this option to Ignore. |
...