I have a query that is currently a blocker for us.
We’re using Exalate to sync between ServiceNow and Jira Cloud (both directions).
When a Customer Case is created in ServiceNow, we’ve configured a trigger and used the following sync rules, which are working as expected. The Customer Case fields are syncing correctly to Jira:
ServiceNow Outgoing Sync Script:
if (entity.tableName == “sn_customerservice_case”) {
replica.key = entity.key
replica.summary = entity.short_description
replica.description = entity.description
}
However, we’re facing an issue when an Incident is created.
The flow is:
- A Customer Case is created.
- From that Customer Case, an Incident is generated.
- A trigger on the Incident creates a corresponding Jira issue.
The problem:
For the Jira issue created from the Incident, we want to sync fields from the original Customer Case, not from the Incident itself. This is because agents in ServiceNow work and update information on the Customer Case, not directly on the Incident.
Request:
I need guidance on how to write the ServiceNow Outgoing Sync Script and the corresponding Jira Incoming Sync Script so that the Jira issue created for the Incident receives data from the associated Customer Case.