How to trigger reference sync rule programmatically?
One answer
you need to use the IInteropManager client library or service.
then syncronizeIncoming() or syncronizeOutgoing().
then syncronizeIncoming() or syncronizeOutgoing().
synchronizeIncoming
void synchronizeIncoming(IExternalProxyHandle proxyHandle, IExternalStateHandle xstateHandle, IAuditableHandle syncedItemStateHandle, ISyncRuleHandle syncRuleHandle, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryExceptionSchedule synchronization of a Jazz item with the state of an external object. The external object is represented by its proxy. If a Jazz item is already associated with the proxy, it is updated (if possible); otherwise, a new item is created (if possible).