Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Fields in email notifications

Joshua Keele February 7, 2022

So I am having an issue including some custom fields in an email. 
For example I have created a custom field "Start:" which is a date time picker type field. 
No matter how I try to format the result is blank. I have even used the rest API to discover the custom field id. Any help would be appreciated. Here are the examples I have attempted:
{{Start:.value}}
{{customfield_10050.value}}
{{issue.fields.Start:}}
{{issue.fields.Start:.value}}

Also note, I have been successful including other custom fields in an email and they work as expected. For example I have a custom field "Select Affected Services:." which is a checkboxes field type, and the following includes tha value
{{Select Affected Services:.value}}

Thanks in advance

 

1 answer

1 vote
Jack Brickey
Community Champion
February 7, 2022

Will the following work?

{{issue.Start}}

Joshua Keele February 7, 2022

no but I did just get the following to work:
{{issue.customfield_10050}}

Now my concern is it returns the GMT form not the formatted offset time. Is there a way to overcome that?

example:
Start:
2022-02-07T08:00:00.0+0000


The actual start time was 00:00 (12am)

Joshua Keele February 7, 2022

so apparently {{issue.Start:}} works as well, but again not formatted for my time zone settings, which do display correctly in Jira itself

Jack Brickey
Community Champion
February 7, 2022

does the documentation on date formatting help? jira-smart-values-date-and-time 

Like Tim Perrault likes this
Joshua Keele February 8, 2022

The format looks much nicer, but does not accommodate for time zone
It shows as Coordinated Universal Time. 
Is there a place in Jira config that I have failed to set the appropriate time zone?
Under system General Configuration, Default user time zone, is (GMT-08:00) Los Angeles

Monday, February 7, 2022 at 8:00:00 AM Coordinated Universal Time

Joshua Keele February 8, 2022

particularly interesting as the documentation actually shows the time as adjusted for time zone

Joshua Keele March 1, 2022

I am still unable to get this to display the corrected offset time for the time zone specified as default 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events