Hello,
I'm currently using JMWE "Set Field Value to constant or Groovy expression" to concatenate 4 custom fields with a - separator. Its working fine but I need to suppress null values and also the separator if the value is null.
The groovy expression is currently:
issue.get("customfield_11200")+" - "+issue.get("customfield_16601")+" - "+issue.get("customfield_16600")+" - "+issue.get("customfield_11206")
This returns VALUE1 - VALUE2 - VALUE3 - VALUE4
If any of the values are null, i want it just to show as VALUE1 - VALUE2 - VALUE4 for example instead of VALUE1 - VALUE2 - null- VALUE4
Can this be done in JMWE?
Many thanks for any help!