Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,274
Community Members
 
Community Events
184
Community Groups

Confiforms sends email with incorrect date format

Confuence v. 7.13.0 and Confiforms v. 2.19.2

My form sends an email at entry creation using IFTTT integration rules. The date is from a datepicker field but using the notation [entry.date] it transforms the date to a string?1631577600000 when sending an email with the entries in the bodu of the message. Using the macro to create Jira issue, correctly sends the date to Jira.

The form has been in use for 2 years and this worked fine during that time, but after a recent update, both Confluence and Confiforms, that changed.

Could you please advise on how to get the date in a correct format via email as well?

 

1 answer

1 vote
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 17, 2021 • edited Oct 03, 2022

Hi

Are you using [entry.field_name] notation to retrieve your data field from the form's record or using ConfiForms Field?

If  (form some reason) you use [entry.field_name] then you access internal value, which is a timestamp

In this case I suggest to do something like

[entry.field_name.formatDate]

Of course you can format it to the pattern you want

https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions

Or switch to ConfiForms Field macro to retrieve values from a form in a "user presentable" format

[entry.field_name] are usually used when you want to do some transformations or create some file/document, or use it in filter parameters...

Alex

@Alex Medved _ConfiForms_  in IFTTT on create send email formatDate  does not work still comes out as a string of numbers. Th

e linked documentation has no answers other than formatDate

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 08, 2023

Could you share the storage format of this page and the IFTTT macro configuration in particular?

Have you considered to use the ConfiForms Field macro instead?

#if(${TargetTimeline}) Target Timeline [entry.TargetTimeline.formatDate(MM/YYYY)] #end

 

#if(${TargetTimeline}) Target Timeline [entry.TargetTimeline.formatDate(MM-YYYY)] #end

 

#if(${TargetTimeline}) Target Timeline [entry.TargetTimeline.formatDate] #end

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 08, 2023 • edited

It does not look like storage format, to be honest

And the pattern does not look right - https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html

Also, I have just did a quick test to verify the formatting patterns

http://recordit.co/slqUaSH5lx

Works fine...

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events