It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hello all, how could i put a custom field value to an existing email template ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it's covered in the document I pointed to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is not very clear, I have to modify only issuecreated.vm in the folder " text " or in all the folders?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure what is unclear in those docs. You have to find every file that generates part of the body of an email where you want to include the field and add the required code for your field to it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have id of my fields custom. I added the code datum in doc ("
https://developer.atlassian.com/jiradev/jira-platform/jira-architecture/jira-templates-and-jsps / adding-custom-fields-to-email ") but it doesn't work...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid "it doesn't work" tells us nothing about what might have gone wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can nothing tell you except that what I have make by following the documentation does not show the deliberate custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you've followed the docs, then the field will be there in the email. So, trace through what you are doing in full - which files, what type of email, was the field filled etc. Try some basic debugging - try sticking plain text in the template - does that come out?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The id of my field is 10007 so i've add "
#if ($issue.getCustomFieldValue("customfield_10007"))
$stringUtils.leftPad($issue.getCustomField("customfield_10007").name, $padSize): $issue.getCustomFieldValue("customfield_10007")
#end " in /template/email/text/issuecreated.vm.
I've changed the values in velocity.properties to not have to restart JIRA.
Then when i create a new issue, there is no custom fields in the mail template..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that looks good. Some more debugging (apologies if some of these seem obvious, but if I don't ask the full set, we might miss something)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes the field 10007 is filled with data.
Oh ok, i'll restart.
What do you mean by "get plain text email" ?
I restarted the instance, I added a sentence in the file but it does not display on the e-mail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your profile has a setting for getting emails in plain text or html. Make sure yours is set to text
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, good, so you were editing the plain text templates, and receiving html emails?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.