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 votes

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,196 views 2 7
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