Format Custom Field Date?

Joanne Nguyen August 7, 2018

I've read through https://docs.codebarrel.io/automation/smart-fields/working-with-dates.html and I'm trying to format a customer field's date to send to Slack.

I've have it so:

Hello! {{issue.key}} - {{issue.description}} - {{issue.toUrl}} is scheduled to be called at 
{{issue.customfield_12914}}format="longDateTime",zone=Australia/Sydney{{/}}

But unfortunately, it fails. Am I missing something? It works for when I use the {{now}} function.

Thanks!

 

 

1 answer

0 votes
Joanne Nguyen August 7, 2018

It turns out I was missing a # for my customer issue field. All good!

 

Hello! {{issue.key}} - {{issue.description}} - {{issue.toUrl}} is scheduled to be called at 
{{#issue.customfield_12914}}format="longDateTime",zone=Australia/Sydney{{/}} 
John McKiernan
Atlassian Partner
August 8, 2018

Glad you got it sorted Joanne! Just let me know if you have any other questions :) 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events