Hello,
I'm trying to move data from a custom field to the "Due Date" field for all existing and new issues.
I've created an automation with "Schedule" trigger, which checks for a custom field not being empty:
"Gitlab Due Date (Text)[Short text]" IS NOT EMPTY
The date coming from the Gitlab Due Date (Text) custom field has values like so: 2023-01-31 and is probably of type "text".
Then I'm trying to format this date so it can be consumed by the Due Date field, which is of type "date" and is using 01/31/2023 formatting, like so:
{{issue.customfield_10143.format("MM/dd/yyyy")}}
Although the Audit log says, its successful, I don't see any entries in the Due Date field.
Hi @Jörg Steinhauer and welcome to the community!
You could try this:
{{issue.customfield_10143.toDate.format("MM/dd/yyyy")}}
There's more info here:
https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/
Hello @Mark Segall , thank you very much! Actually {{issue.customfield_10143.toDate.format("yyyy-MM-dd")}} did the job, but your advise with toDate was important.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.