public class EmailDefinitionApi {
private List<String> to; //user keys and email addresses
private List<String> cc; //user keys and email addresses
private List<String> bcc; //user keys and email addresses
private com.metainf.jira.plugin.emailissue.action.EmailOptions emailOptions;
private String emailBody; //email body (will be injected in the template)
private String emailSubject; //email subject (will be injected in the subject part of the template)
private List<String> attachments; //issue attachment IDs
private String addAttachments;
private String emailTemplate; //name or ID of the Email template to use
private Map<String, Object> payload; //arbitrary values that are injected into the Velocity Context in the template
public class EmailOptions {
private boolean addToWatchers; //add recipient users to watchers, default: false
private boolean replyToMe; //set the current user as the reply-to address, default: false
private boolean mailAsMe; //set the sender address to the current user's email address, default: false
private String emailFormat; //email format "text" or "html"
private String emailPriority; //HIGH, NORMAL, LOW
public class EmailLogQuery {
private String type; //EmailType