Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to trigger reference sync rule programmatically?

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.

0 votes



One answer

Permanent link
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).

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,030

Question asked: Jul 20 '13, 3:01 a.m.

Question was seen: 4,995 times

Last updated: Jul 20 '13, 3:32 p.m.

Confirmation Cancel Confirm