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.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.