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: 

Automation: How to sum up differences of dates?

Karin_Gleichauf
Contributor
November 30, 2022

Hi there,

I calculate the difference of dates in an automation rule by {{fieldchange.from.toDate.diff(fieldchange.to.toDate)}} and write the result (e.g. "2 days") to a text field.

How can add it next time of the rules execution to the new result? Respectively how can I convert this result [text] to a number that I can sum up?

 

Best regards

Karin

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Karin_Gleichauf
Contributor
November 30, 2022

I could solve this by using {{fieldchange.from.toDate.diff(fieldchange.to.toDate).hours}} and then using a number field for the result..

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

Atlassian Community Events