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,462,950
Community Members
 
Community Events
176
Community Groups

Confiforms - How to copy EPOC from date field and paste into ReadOnly field formatting as yyy-MM-dd

Hello all! I'm trying to copy an EPOC value obtained from a Date field into a ReadOnly field  so I can store that into a table. The value that's returned is an EPOC value. Any way I can update the ReadOnly field with the date string of "yyy-MM-dd"? How do I convert the EPOC value into a string that can be copied into the RO field. So far I have not found a function that deal with EPOC to date string conversion.

Here is what I'm trying to do...

Date Field 1: Date selector formatted as yyyy-MM-dd

Date Field 2: ReadOnly field

Update Date Field 2 with value from Date Field 1 while adding 7 days to the value and then updating Date Field 2 and have it displayed like "yyyy-MM-dd"

I am totally new to confiforms, so this is a learning on the job experience.

Thank you.

Glen

2 comments

I answered my own question. After turning on debug I found it was converting the value that I wanted but found out it was not updating the field properly. I had the wrong variables trying to assigned to the field.

You can use formatDate on your "epoc" holding field - https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions

Note that functions and transformations could be applied realtime, so it is very rare when you need to copy the field's value into some other field, but could use it directly

See this quick demo: 

http://recordit.co/6J9lAEGLVv

(as a bonus I have also jiraDateTime function used... dont get confused too much. This function is just a shortcut to formatDate function, but with special pattern)

 

Alex

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events