JIRA and custom email template issue

ko yong
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!
October 24, 2011

Hi all, I'm having what is surely a pretty trivial problem , but for the life of me I can't seem to sort it out. I'm modifying the issuecreated template for text emails trying to include the issue description. Everything I'm trying seems to end badly though. According to the documentation I found I should be able to just call $issue.getDescription() but that is throwing a bad reference in the logs. I don't need anything fancy, just the description right underneath the summary.

Any ideas?

2 answers

0 votes
Kiron
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.
March 28, 2012

Hi,

Have you ever got this resolved..if so can you share the solution?

Thanks!

0 votes
ko yong
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!
October 30, 2011

2011-10-31 11:35:50,605 WARN [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = getEncodedBodyFromContent [line 5,column 38] : $i
ssue.getDescription() is not a valid reference.
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:316)
at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:210)
at com.atlassian.velocity.DefaultVelocityManager.getEncodedBodyForContent(DefaultVelocityManager.java:137)
at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:219)
at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:134)
at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:109)
at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167)
at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68)
at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)

Thats the stack trace.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events