I've been looking around but I can't get waht I want. I want a custom field (number field) shown in my email subject.
According to those posts:
I have edited the issuecreated.vm in the subject folder. That's what I have:
($issue.key) $issue.getCustomFieldValue("customfield_12562") $issue.summary
Watching the mail queue it seems like it should be working (cf is shown) but the logs show me the following error:
2013-05-14 12:57:07,764 http-8090-6 WARN CzaiaC 777x546x1 zs956v 10.250.205.193 /secure/admin/MailQueueAdmin!default.jspa [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = getEncodedBodyFromContent [line 1,column 14] : $issue.getCustomFieldValue("customfield_12562") is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277)
Are you still having the issues, even after using the above code.
Also in the error list which you have shared it states that $issue.getCustomFieldValue("customfield_12562") is not a valid reference.
Because issue.getCustomFieldValue(X), will take customfield & since you were not passing the Customfield you were getting error.
Also please check if the value returned is not null before using it in summary
Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot