Select list cascading smart value isEmpty does not return TRUE or FALSE when it is emtpy

Bin
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.
April 2, 2024

issue.customfield_xxxxx.value.isEmpty did not return TRUE if the field was empty.  But when I selected a value in the field, the same smart value returned FALSE.  So it works only when the field is not empty.

Does anyone experience the same or I did something wrong.

2 answers

0 votes
Cristian Ames Torres
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!
October 24, 2024

You can use the expression "equals" over the child value instead. Check this example:

{{equals(issue.Custom_Field_***.child, null)}}

This will return TRUE whenever the child is null and FALSE whenever some value is assigned. Note that I am referring to the child structure, not its content (child.value). Trying this on its value for some reason won't work.

0 votes
Bill Sheboy
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.
April 2, 2024

Hi @Bin Liang 

Yes, I have seen the same behavior, and I have not found the isEmpty function to be useful due to this problem with handling null values as "empty".  

I recommend using other methods to detect an empty value.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events