Zendesk-Jira unexalate tag handling

Hello team,

I’m using a tag in zendesk for “unexalate” when the tag “unexalate” is written. The Jira incoming looks like this:

def tag names = replica.labels.collect { it.value}
If (tagNames.contains(“unexalate”)) {
replica.labels.removeAll { it.value == “unexalate” } //function to remove the tag in zendesk not working
syncHelper.unExalateAfterProcessing()//works perfect unexalating

}

Not only I want to unexalate the zendesk to Jira but also I need to remove the tag from the zendesk ticket and my function is not working now. What can I be missing?

Hi there,
I guess you could do:
Jira Incoming:
if(condition){
syncHelper.syncBackAfterProcessing()
}
ZD incoming:
if(condition){
syncHelper.unExalateAfterProcessing()
}

Hi Ariel,

The unexalate process works smoothly. The untag can be done without using a DELETE or PUT API call?

I thought that it has worked with the replica.labels.removeAll() method I used in the past but I believe I was wrong.