Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

dee prin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 30, 2012
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

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 1, 2012

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.
0 votes
dee prin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 1, 2012

help!!! anyone??

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events