How to sync Zendesk labels to Jira components

Originally asked by Juan Grases on 25 March 2020 (original question)


I want to sync my labels on zendesk to components in Jira.


Answer by Juan Grases on 25 March 2020

On your zendesk side, make sure you send the labels:

// Outgoing processor Zendesk side
replica.labels = issue.labels

Then on Jira, you can make exalate to look from the available components in the project:

// Incoming processor Jira side
def project = issue.project ?: nodeHelper.getProject(issue.projectKey)
issue.components = replica.labels.collect{ l ->
  project.components.find{it.name.equalsIgnoreCase(l.label)}
}.findAll{it}

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.