Email This Issue provides two types of API components that makes it possible to integrate it with other addons or external services.
...
Parameter | Value |
---|---|
REST path | $JIRA_BASE_URL/rest/jeti/1.0/email/stat |
Request Method | GET |
Request Headers | Content-Type:application/json |
Authentication | What Jira REST API offers See details in the documentation |
Query Parameters | issueKey - Key of the issue whose email audit log is queried |
Response Codes |
|
Response Data | Number of mail items matching the query |
Example | http://JIRA_URL/rest/jeti/1.0/email/stat?issueKey=<issue key> |
...
Parameter | Value |
---|---|
REST path | $JIRA_BASE_URL/rest/jeti/1.0/email/query |
Request Method | GET |
Request Headers | Content-Type:application/json |
Authentication | What Jira REST API offers See details in the documentation |
Authorization | Only those users may query the email items who are authorized to view them in the issue |
Query Parameters | issueKey - Key of the issue whose email audit log is queried |
Response Codes |
|
Response Data | JSON Array of email items matching the query |
Example | http://JIRA_URL/rest/jeti/1.0/email/stat?issueKey=<issue key> |
...
API | Explanation | ||||||||
---|---|---|---|---|---|---|---|---|---|
Component interface | com.metainf.jira.plugin.emailissue.api.EmailService | ||||||||
Component method |
| Email parameters | |||||||
Component method |
|
Email Parameters
Code Block | ||
---|---|---|
| ||
public class EmailDefinitionApi {
private String issue;
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 Long issueId;
private String issueKey;
private String type; //EmailType
private String source;
private int top;
private Date from;
private Date to;
} |