It's all about the answers!

Ask a question

How to trigger reference sync rule programmatically?


Kanagaraj Duraisamy (157) | asked Jul 20 '13, 3:01 a.m.
We are using Item connector framework where work item sync rule and attachment sync rule (reference sync rule). We have a situation where we need to programmatically trigger the attachment reference sync rule. Your help is highly appreciated.

One answer



permanent link
sam detweiler (12.5k6195201) | answered Jul 20 '13, 8:20 a.m.
edited Jul 20 '13, 3:32 p.m.
you need to use the IInteropManager client library or service.

then syncronizeIncoming() or syncronizeOutgoing().

synchronizeIncoming

void synchronizeIncoming(IExternalProxyHandle proxyHandle,
                         IExternalStateHandle xstateHandle,
                         IAuditableHandle syncedItemStateHandle,
                         ISyncRuleHandle syncRuleHandle,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                         throws TeamRepositoryException
Schedule 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).

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.