Click New to add a new field map. Check the Use source script and Coalesce boxes. Then select your target table and choose Sys Id as the target field. Add the following Source script for your new field map: answer = (function transformEntry(source) { if (source.u_action == 'issue_created' || source.u_action == 'issue_updated') { var pspC = new PerspectiumCorrelation(); return pspC.getRecordSysId(source, 'jira', 'incident'); } return ''; })(source); |
Finally, click Submit in the bottom left-hand corner of the form to save your new field map. |