I would like to insert the creation date in the format "yyyy-MM-dd HH:mm" with the time zone "Europe/Rome" in the summary of an automation
I have tried several commands without success:
Unknown macro: {{issue.created.convertToTimeZone("Europe/Rome").format("yyyy-MM-dd HH:mm"}
}
Unknown macro: {{issue.created.setTimeZone("Europe/Rome").format("yyyy-MM-dd HH:mm"}
}
I finally "solved" using the minusMinutes() function...
where am I going wrong?
{{issue.created.minusMinutes(107).format("yyyy-MM-dd HH:mm")}} - {{issue.issueType.name}} for {{initiator.name}}
References:
https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/
https://confluence.atlassian.com/automation/date-and-time-functions-993924864.html
Hi @[deleted] - You were really close. You were missing a close parentheses on your format command. This worked for me:
{{issue.created.convertToTimeZone("Europe/Rome").format("yyyy-MM-dd HH:mm")}}
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.