Hi team,
I would like to request support for mapping the ServiceNow priority field’s display values (e.g., “1 - Critical“) to Jira values (P1, P2, etc.).
Can you help us to configure this through a value mapping script in the Exalate sync
please find the script details below.
SNOW Outgoing script:
replica.priority = entity.priority
**Jira Incoming script:
**
def priorityMapping = [
"1 - Critical": "P1",
"2 - High" : "P2",
"P3": "2 - Medium",
"3 - Moderate": "P3",
"4 - Low" : "P4"
]
if (replica.priority && priorityMapping.containsKey(replica.priority)) {
issue.customFields."SN Priority(Severity)".value = priorityMapping\[replica.priority\]
}**
**
And I have raised a request in the Support portal also**[Sync Issue: SN Priority Field (ServiceNow to Jira) - Exalate Support Portal - Jira Service Management]**
Please let us know if this is the correct approach or if any adjustments are required.
Thank you,
Veeresh