I use a Manual trigger to test the following Automation rule:
Log message: days differance: {{issue.customfield_13081.diff(issue.customfield_13080).days}} days
In the Audit Log I get:
days differance: days
Seem like the calculation return Null value.
customfield_13081 is Plan Target end field and customfield_13080 is Plan Target start field.
Any experaince/advice with this diff calculation - eventauly I need the diff to be an intiger days value
I believe the planning smart values are text and not date (or date / time) types when used in rules. They must be converted with the toDate function before using the diff() function:
Please try this expression:
{{issue.customfield_13081.toDate.diff(issue.customfield_13080.toDate).days}}
Kind regards,
Bill
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.