Hello @krigney,
Blaise’s suggestions would work great. I have another way using the static transform and velocity that may look a little more readable.
{
"type": "static",
"attributes": {
"deparment": {
"type": "static",
"attributes": {
"value": "thisisatestwithalongstringofchars"
}
},
"value": "#if($deparment.length() > 28)$deparment.substring(0,28)#else$deparment#end"
}
}