Forums

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

Date diff not working

Miroslav Kralik
Contributor
November 20, 2024

Hi everyone,

 

I have a simple formula to get a diff between dates, but it does not seem to be working (no change history even is triggered for updating the Estimated delay field). I am storing the result into a text field. 

 

Formula

{{issue.customfield_10088.diff(issue.customfield_10352).days}}

 

issue.customfield_10088 -> {"start":"2025-01-31","end":"2025-01-31"}

issue.customfield_10352 -> {"start":"2024-12-11","end":"2025-12-11"}

 

Screenshot 2024-11-20 at 10.58.42.png

Screenshot 2024-11-20 at 10.59.46.png

 

I tried also {{issue.customfield_10088.toDate.diff(issue.customfield_10352.toDate).days}}, but same result.

Is this an issue in JPD or am I doing something wrong? 

Thanks, Miroslav

 

 

2 answers

1 accepted

3 votes
Answer accepted
Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2024

Hi @Miroslav Kralik ,

Take a look my suggestion on this other JPD Community Question, which provides an automation to calculate the date differential, and enter it into a number-field.

Miroslav Kralik
Contributor
November 20, 2024

Hi Nick, thank you. With the variables, it works!

Like Nick Haller likes this
0 votes
joachim ramberg
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2024

Hi,

Would the IF condition {{smart values}} condition work for you?

Miroslav Kralik
Contributor
November 20, 2024

I tried that and the IF condition works, but no updates to the Estimated delay field. 

Screenshot 2024-11-20 at 12.36.33.pngScreenshot 2024-11-20 at 12.36.20.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events