We are having an intermitted issue with displaying a custom field in an automatic generated email.
We updated the files per “Adding Custom Fields to Email” https://developer.atlassian.com/jiradev/jira-platform/jira-architecture/jira-templates-and-jsps/adding-custom-fields-to-email
And the field “Program Number” shows up sometimes but not in every email that is created during “Issue Creation”.
here is the code we used to add the "program number"
$stringUtils.leftPad($issue.getCustomField("customfield_10000").name, $padSize): $issue.getCustomFieldValue("customfield_10000")
The field always has a numeric value but doesn't always show up in the actual email
Are all the workflows firing the right events to trigger the use of this template? I am waiting to hear from the user who noticed the problem.
Does the field show anything in the email at all?
Nothing, no label nor any data even though it is available on the "Create Issue" form email_program_number.jpg
Ok, that implies your code is working, and the field is empty at creation. So the next question is - can we find a create-issue email which missed the field,and have a close look at the history - specifically for that one field - has it been changed at all on that issue?
We do need to take a look at the events going out and transition post-functions for create as well.
I changed the script in "issuetype.vm" by adding these lines
user reported back to me that its working in multiple projects now. Thank you for taking time to help us out.
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 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