/
Incoming Mail Handler
Incoming Mail Handler
Incoming emails can be efficiently processed using SIL scripting, providing an unparalleled level of flexibility. Review the following video for an overview of this feature.
The sample script used in the video is listed below. For more details, please see the configuration page that describes this feature.
IncomingEmail mail = getIncomingEmail();
string issueKey = mail.subject;
if(issueExists(issueKey)) {
// add comment
string commentText = mail.body;
string userCommenting = getUserByEmail(mail.from).key;
addComment(issueKey, userCommenting, commentText);
attachAllFilesFromEmail(issueKey);
} else {
// create issue
string summary = mail.subject;
string description = mail.body;
string [] fields = {};
fields += {"reporter", getUserByEmail(mail.from).key};
createIssue("PROJECT NAME", "", "Task", summary , "Minor", description, {}, "", "", fields);
}
Peacock
, multiple selections available,
Related content
Mail Handler
Mail Handler
More like this
Mail Handler
Mail Handler
More like this
Incoming Mail Processing Functions
Incoming Mail Processing Functions
More like this
Mail Configuration (incoming)
Mail Configuration (incoming)
More like this
Replicate the native Jira email handler
Replicate the native Jira email handler
More like this
sendEmail
sendEmail
More like this