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
I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs