Your existing ServiceNow dynamic shares that are pointing to Salesforce will need to be modified slightly to handle the transfer of data among multiple apps. The Business Rule When, interactive only, filter conditions, and before/after share scripts will all need to be updated to enable a multi-app ServiceBond for ServiceNow integration.


Procedure

To modify your ServiceNow dynamic shares for Jira to enable a multi-app ServiceBond integration, follow these steps:


Access your ServiceNow dynamic shares for Jira

Log into your ServiceNow instance and navigate to Perspectium Replicator Dynamic Shares. Then, click into the dynamic shares that you want to modify to enable your multi-app ServiceBond integration.

Configure business rule timing

Scroll down to the Trigger Conditions tab. Ensure that the Interactive only box is checked. Then, from the Business Rule When dropdown, choose before.

Add before/after share scripts

Within the Filter and Enrichment tab, scroll down to the Before share script and After share script windows. Update the scripts as follows:

Before share script
var pspC = new PerspectiumCorrelation();
var targetValue = pspC.querySysId('u_value', current.sys_id, 'jira', current.getTableName());

var cgr =  pspC.getCorrelationId(current, 'jira');
if (cgr.u_correlation_id == '') {
if (targetValue == "")
psp_action = "insert";
else
psp_action = 'deferred';
}

Save your ServiceNow dynamic share for Jira

At the bottom left-hand corner of the dynamic share form, click Update to save your changes to each ServiceNow dynamic share for Jira that will be part of your multi-app ServiceBond integration.

Create ServiceNow Identifier & Sys ID custom fields in Jira

Per the ServiceBond for Jira setup, make sure to add the following custom fields to the Jira project issue type you are syncing ServiceNow incidents with:

  • ServiceNow Identifier
  • Sys ID

Then, provide the customFieldId numbers to Perspectium Support. For more information, see Jira installation.

Next steps


Edit the Salesforce Share Comment and Salesforce Share Attachment script actions in ServiceNow