Originally asked by Jeff Meyer on 27 January 2022 (original question)
I am trying to set up Exalate between Zendesk and Jira Cloud.
I have a field in Zendesk called ‘EB Priority’ that I need to push to Jira cloud field ‘Priority’
The field in Zendesk has the following list of options
EB Priority
- Sev1
- Sev2
- Sev3
- Sev4
- -
The Jira field has the following
Priority
- 1
- 2
- 3
- 4
- 5
And I want them to translate to this
- Sev1 – 1
- Sev2 – 2
- Sev3 – 3
- Sev4 – 4
we will use 5 if nothing is set from Zendesk side.
I am not sure how to configure this in the connections for this.
I found this for Priority to Priority but we are trying to match from a custom field on the Zendesk side “EB Priority” so it is not working and I am not sure how to change the code to reflect the custom field.
def priorityMapping = [
// remote side priority <-> local side priority
“Sev1” : “1”,
“Sev2” : “2”,
“Sev3” : “3”,
“Sev4” : “4”,
]
def priorityName = priorityMapping[replica.priority?.name] ?: “5” // set default priority in case the proper urgency could not be found
issue.priority = nodeHelper.getPriority(ExactBid PriorityName)
Thanks
JM