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
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
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