Stop syncing specific customField(Organization)

Originally asked by Mr Gareth W Boulte on 09 April 2020 (original question)


I have a number of triggers that I have disabled however the sync for those organizations is still live.

I would like a code snippet so that I can exclude organizations by their Id/OrgName to put in the rule configuration.

The sync is happening from Zendesk to JIRA Cloud.


Answer by Juan Grases on 10 April 2020

You could use something like this on the top of your outgoing processor from zendesk side:

def excludeOrgs = [12,23,32]
if(excludeOrgs.find{it == issue.organization_id}) return

If the organization id of the issue being synced if on the list of excludeOrgs then it won’t be synced at all.

Hope this works,

Juan