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
As the Exalate support just closed my case and reffered me here... here goes:
We are trying to setup sync witha partner that uses Zendesk.
in my incoming I have:
issue.customFields."Vendor Status".value = replica.status
issue.customFields."Vendor Service".value = replica.type?.name
issue.customFields."Vendor Priority".value = replica.priority
All fields just being text, so I can see values.
This gives:
problem
com.exalate.basic.domain.hubobject.v1.BasicHubPriority@40d79ce0
com.exalate.basic.domain.hubobject.v1.status.BasicHubStatus@684c940
The last 2 I cant resolve to Jira - I need the values as strings:
def priorityMapping = ["Normal":"Minor (P4)", "Low":"Minor (P4)","High":"Major (P2)","Urgent":"Critical (P1)"]
def remotePriorityName = replica.priority
issue.setPriority(priorityMapping[remotePriorityName] ?: remotePriorityName)
The outgoing from ZenDesk:
replica.key = issue.key
replica.assignee = issue.assignee
replica.reporter = issue.reporter
replica.summary = issue.summary
replica.description = issue.description
replica.type = issue.type
replica.attachments = issue.attachments
replica.comments = issue.comments
replica.status = issue.status
replica.priority = issue.priority
Also, is this case sensitive?
issue.typeName = nodeHelper.getIssueType(replica.type?.name, issue.projectKey)?.name ?: "Service Request"
And we have “Problem”, but the incoming is “problem”
Hello, Normann P. Nielsen
Thanks for raising this here.
Please, try
please, give this a go:
Yes, unfortunately, it is, so you could do a mapping:
Please, let me know, how it goes
Regards, Serhiy.