Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I am trying to read the standard Labels field to see if it is null. If the Label field is null I want to return a message saying that the "Client ID is required". I searched and tried many approaches but still no luck. Any suggestions would be greatly appreciated.
<!-- @@Formula:
import com.atlassian.jira.issue.label.Label;
if (label.getLabel() == null {
return "<b><font color=red>This change cannot be approved until a planned date is specified</b></font>";
}
-->
Try:
<!-- @@Formula:
if (issue.get("labels") == null || issue.get("labels").size() == 0) {
return "<b><font color=red>This change cannot be approved until a planned date is specified</b></font>";
}
-->
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.