syncHelper.syncBackAfterProcessing not available in ServiceNow?

Originally asked by Benjamin Kiene on 26 July 2021 (original question)


Do I see right that there is no such function as syncHelper.syncBackAfterProcessing on the ServiceNow side?

Are there any plans to add that at some point or is there any other way I could achieve the same thing in ServiceNow?

Because when I update the incident.assigned_to field to from ‘empty’ to someone or vice versa from someone to empty our ServiceNow automatically updates the status from ‘Assigned to group’ to ‘Assigned to individual’ or back. Which brings the status out of sync until I trigger a sync from ServiceNow to Jira in one way or another.


Answer by Benjamin Kiene on 26 July 2021

I tested it now and it seems to be working fine, so it must be a gap in the documentation as the syncHelper.syncBackAfterProcessing() is not listed under ServiceNow on the syncHelper documentation page: syncHelper - Exalate Documentation - Exalate Documentation (idalko.com)

That leads me to another question though: SyncBackAfterProcessing performance implications? - community (exalate.com)


Comments:

Ariel Aguilar commented on 27 July 2021

Hi Benjamin,

When you say you tested it, do you mean you added a piece of code on Jira Cloud or ServiceNow? I have looked on our base code and SyncBackAfterProcessing does not look to be functional on ServiceNow, therefore the documentation would be fine. This leads me to think it worked on Jira Cloud, and propagated correctly to ServiceNow. Could you confirm?

Kind regards,

Ariel

Benjamin Kiene commented on 30 July 2021

Hi Ariel,

I added a “syncHelper.syncBackAfterProcessing()” line in the Incoming sync script on a ServiceNow node and it works flawlessly initiating a sync back to the other side as the function suggests.

Best regards, Ben

Ariel Aguilar commented on 30 July 2021

Hi Benjamin,

This is interesting, and thanks for letting us know. I will investigate then why it has not been added to our documentation and I will be back with you.

Thanks

Ariel

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.