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

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events