I need to a send a customized email in every 1 hour for a particular filter
If you really need something completely custom, yeah, it's possible but it requires a lot of scriptrunner skills.
You'll need to:
Create a custom job to run every hourHave your script run the JQL and handle the resultsThe script will need to construct the email body and dynamically identify recipients if applicableBut here is a sample script to send an email:
import com.atlassian.mail.Emailimport com.atlassian.mail.MailExceptionimport com.atlassian.mail.MailFactoryimport com.atlassian.mail.queue.SingleMailQueueItemimport com.atlassian.jira.component.ComponentAccessordef mailServerManager = ComponentAccessor.mailServerManagerdef mailServer = mailServerManager.defaultSMTPMailServerif (mailServer && !MailFactory.settings.sendingDisabled) { def email = new Email('recipent@domain.com') email.setFrom(mailServer.defaultFrom) email.setSubject('your email subject') email.setMimeType('text/html') email.setBody('your email body') try { def mailItem = new SingleMailQueueItem(email) ComponentAccessor.mailQueue.addItem(mailItem) return "Mail sent" } catch ( MailException e){ log.error e.message return "Failed to send" }} else { return "Message not sent: no outgoing server or sending is disabled"}
If you would like to do to this without writing code, you can do this using our app Notification Assistant for Jira https://marketplace.atlassian.com/apps/1211069/notification-assistant-for-jira-email?hosting=server&tab=overview
It looks like you're new here. Sign in or register to get started.