The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiforms: how do I convert a string to date? for example 2024-10-25 to timestamp

Pat L_
Contributor
September 24, 2024

How do I convert a string to date? for example 2024-10-25 to timestamp

My JIRA API returns a field with customfield for example

 

entry.jiraissue.fields.customfield_24100 returns 2014-10-25 as a string. 

I'd like to convert it to a date field in confiforms by setting:

date=[entry.jiraissue.fields.customfield_24100] and it doesn't work.

Thanks.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
September 24, 2024

date=[entry.jiraissue.fields.customfield_24100.parseDate(yyyy-MM-dd).timestamp] 

Pat L_
Contributor
September 24, 2024

Great. Thanks, Alex. I just founded it out myself as well but you beats me by 2 mins. lol.

Much appreciated.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events