Forums

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

Automation: Date difference {{[date1].diff([date2]).[unit]}}

emma.deantonio February 5, 2024

Hello, 

We are trying to use the automation stated above but it is not working. Can someone help us? We are doing the following:

We want to calculate the days a task goes through the column "Validación". When the card goes through "Valildación", these two date fields are filled automatically.

 Captura de pantalla 2024-02-05 a las 11.36.28.png

So, in order to calculate the days between these two dates we created a rule:

Captura de pantalla 2024-02-05 a las 11.39.11.png

In the second "Then" field, we used the following formula: {{issue.Fecha Fin Validación.diff(issue.Fecha Inicio Validación).abs.days}}

For some reason, this is not working, but we don't understand why. Could someone please help us?

If you need more information, do not hesitate to tell me.

Thank you very much in advance!!! :) 

1 answer

1 accepted

1 vote
Answer accepted
Manne Kjærby - ProProces
Atlassian Partner
February 5, 2024

Hi Emma.

 

Have you tried switching abs and days positions so it looks like this:

{{issue.Fecha Fin Validación.diff(issue.Fecha Inicio Validación).days.abs}}

 

emma.deantonio February 5, 2024

I'll try it, thank you very much!!

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