ServiceNow table maps handle the transformation of data being shared out of your ServiceNow instance. To ensure that the data being shared out of your ServiceNow instance is transformed correctly before it reaches its destination in Jira, you will need to make some changes to the scripts that handle the correlation of data from ServiceNow to Jira in the Incident to Common Incident (Jira) table map.


Procedure

To modify for the Incident to Common Incident (Jira) table map in ServiceNow for your multi-app ServiceBond integration, follow these steps:


Access the Incident to Common Incident (Jira) table map

Log into your ServiceNow instance and navigate to Perspectium Common Documents PSP Common Table Maps. Then, click into the Incident to Common Incident (Jira) table map.

Update correlation_id and correlation_display field map scripts

Scroll down to the PSP Table Field Maps list. Then, update the scripts for the correlation_id and correlation_display source fields as follows:

Source Field

Source Script

CorrelationId
var pspC = new PerspectiumCorrelation();
var cgr = pspC.getCorrelationRecord(current, '', 'jira');
if (cgr.isValidField("u_correlation_id") && !cgr.u_correlation_id.nil()) {
answer = cgr.u_correlation_id;
}
else {
answer = '';
}
correlation_id
var pspC = new PerspectiumCorrelation();
var cgr = pspC.getCorrelationRecord(current, '', 'jira');
if (cgr.isValidField("u_correlation_id") && !cgr.u_correlation_id.nil()) {
    answer = cgr.u_correlation_id;
}
else {
    answer = '';
}
correlation_display
var pspC = new PerspectiumCorrelation();
var cgr = pspC.getCorrelationRecord(current, '', 'jira');
if (cgr.isValidField("u_correlation_display") && !cgr.u_correlation_display.nil()) {
    answer = cgr.u_correlation_display;
}
else {
    answer = '';
}

Save the Incident to Common Incident (Jira) table map

Click Update in the top right-hand corner of the transform map form to save your changes to the Incident to Common Incident (Jira) table map.

Next steps


Create Salesforce and Jira assignment groups in ServiceNow (multi-app integration)