Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
Hi:
I am synching the labels field between Azure Devops and JIRA on premise server.
I am using the tip here: https://docs.idalko.com/exalate/display/ED/How+to+synchronize+issue+labels
on the JIRA incoming side I have this line:
issue.labels = replica.labels.collect { it.label = it.label.replace(" ", "_"); it }
This works correctly to replace spaces with underscores in a label, but it also inserts an underscore as the first character in the second and subsequent labels synching over from Azure Devops to JIRA.
For example, I have this in Azure DevOps:
Label 1 is: Mag S Tag
Label 2 is: THIRDTAG
Label 3 is: TWOTAG
JIRA gets this:
Labels 1: Mag_S_Tag
Label 2 is: _THIRDTAG
Label 3: _TWOTAG
Does anyone have a suggestion for how I can correct that line?
Thank you,
Maggie