I'm trying to have an if statement that runs if a date/time picker value, "Last Status Change" is after the start of today's date. This was my most recent attempt:
{{#if(now.toDateTimeAtStartOfDay.isBefore("Last Status Change"))
Test
{{/}}
This permutation has errors, but I've tried dozens of different variations and I'm out of ideas. I think this is just the cleanest psuedocode example for showing what I'm trying to do. I've also tried getting a diff between "now" and "Last Status Change" but it would appear blank.
Any thoughts or suggestions would be appreciated.
Hi @Delaney Bannon -- Welcome to the Atlassian Community!
Is "Last Status Change" a custom field you have added and which is a date / time type field?
If so, please try this:
{{#if(now.toDateTimeAtStartOfDay.isBefore(issue.Last Status Change))}}Test{{/}}
You will need to confirm the exact smart value (or custom field ID) to use for your field for the expression to work.
That may be done using this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.