The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new 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 Champions.
April 2, 2024

Hi @Bin 

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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events