Smart values: .isEmpty / .isNotEmpty isn't working for issue.duedate

SASIS AG
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2023

Hi,

{{#if(issue.dueDate.isNotEmpty())}}{{issue.dueDate}}{{/}} doen't work
{{#if(issue.customField_14702.isNotEmpty())}}2023-03-03{{/}} works

Sure a due date is set to the issue.

Why isn't it possible to use .isNotEmpty for a due date?
Any workaround?

I try to clone an issue and set the due date to a specific date X when the trigger issue doesn't have any value and otherwise take the due date from the trigger issue.

The whole smart value would be:

{{#if(issue.dueDate.isNotEmpty())}}{{issue.dueDate}}{{/}}{{#if(issue.dueDate.isEmpty())}}{{now}}{{/}}

However, it can't work when even the smart value mentioned in the beginning of this post doesn't work. Neither for clone action, nor for log action.

Kind regards
Joe

1 answer

0 votes
Tony Langlet
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.
February 10, 2023

Hi SASIS,

You could try the solution that was provided in a previous post 

2023-02-10 16_47_32-Window.png

https://community.atlassian.com/t5/Automation-questions/Automation-Rule-to-null-check-custom-field/qaq-p/1533044

 


 

Or if that doesn't work you could make a less pretty solution and set a dummy date on issue creation e.g.1990-01-01, and do a check on that date instead of empty.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.10
TAGS
AUG Leaders

Atlassian Community Events