How do I configure Jira Jelly to send Issue reminders through smtp.gmail.com?

I get the error message to starttls when I try to run this script.
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:email="jelly:email" xmlns:log="jelly:log">
<jira:Login username="xxx" password="sososos">
<core:invokeStatic className="com.opensymphony.user.UserManager" method="getInstance" var="instance"/>
<jira:RunSearchRequest filterid="10862" var="issues" size-var="issuecount"/>
<core:forEach var="issue" items="${issues}">
<!-- Get user -->
<core:invoke on="${instance}" method="getUser" var="user">
<core:arg type="java.lang.String" value="${issue.assignee}"/>
</core:invoke>
<!-- Send email to user -->
<core:set var="emailMsg">Item ${issue.key}: "${issue.summary}" has been idle for an extended period of time. Please update and/or provide a comment.
Thank you
JIRA Administration
</core:set>
<email:email to="xxx@domain.yyy" from=" xxx@domain.yyy " subject="escalation" server="smtp.gmail.com "
message="${emailMsg}"/>
</core:forEach>
</jira:Login>
</JiraJelly>

2 answers

help!!! anyone??

0 vote

You need to put something on jira's mail queue or invoke the send method from the mail server.

def mailServerManager = componentManager.getMailServerManager()

def mailServer = mailServerManager.getDefaultSMTPMailServer()

SingleMailQueueItem item = new SingleMailQueueItem(email);

ManagerFactory.getMailQueue().addItem(item);

You basically need to write that using jelly.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

162 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you