Originally asked by Sebastian Mennen on 20 June 2023 (original question)
We are experiencing an issue with our outgoing sync from ADO to Jira Cloud. When the workItem.labels collection has more than one label in it all labels except the first one gets a leading space. I’ve tried this:
replica.labels = workItem.labels.collect { label ->
def ml = label.value.trim()
def nLabel = new com.exalate.basic.domain.hubobject.v1.BasicHubLabel().setLabel(ml)
label = nLabel
}
this causes no error but the output is still this:
"labels": [
{
"label": "Label1"
},
{
"label": " Label2"
}
],