Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I'm using Jira Data Center 9.4.15
I want to create a workflow post-function to send a custom email. In addition to some text, I would like the body of the email to include the value of a custom field on the Jira ticket.
The custom field ("PDF URL" id 12345") contains a URL to the approved document. The email should provide that URL to the email recipients.
In the Email template section of the custom email configuration page, I have typed the text for the body of the email, but I can't get the custom field value (URL) to be returned. HELP!
${issue.getCustomFieldValue('PDF URL')}
Hi @Jennifer Maurer ,
When referencing a custom field in Jira Automation, you should be able to access the data by using the following pattern, and the custom field's ID:
{{issue.fields.customfield_XXXX}}
Replace the XXXX's with the Custom Field's ID number, and this should return the value stored in that custom field.
Please give this a try, and if you're still encountering issues could you share screenshots of your automation rule?
Cheers,
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the question wasn't about Jira Automation; rather a post-function custom email...uses a different syntax. i got it working with
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My apologies, must have conflated a previous question I was answering with yours.
Either way, I'm glad to hear you got it working!
I would recommend changing the syntax to reference the Custom Field ID instead of the name, just in case you plan on changing the field name in the future.
Are you able to share which App you're using for the "Send Email" post function? This doesn't appear in my demo Jira DC environment as a native feature.
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.