It's all about the answers!

Ask a question

How to create syncrules programatically?


Sriram B (5147) | asked Nov 21 '12, 11:56 p.m.
I can see the methods to load existing sync rules, modify and delete them using the interopmanager. Is there a similar method available to create a new syncrule.

Accepted answer


permanent link
Masabumi koinuma (46115) | answered Nov 26 '12, 2:57 p.m.
JAZZ DEVELOPER
Hello Sriram,

When you say you can see the methods, did you mean the methods through com.ibm.team.interop.client.IInteropManager API and com.ibm.team.interop.common.ISyncRule API?
If so, you can create a new syncrule instance via com.ibm.team.interop.common.InteropFactory#createSyncRule() and save it by IInteropManager API.

What makes you consider creating/editing sync rules programatically as opposed to ClearQuest synchronizer GUI?
Sriram B selected this answer as the correct answer

Comments
Sriram B commented Nov 27 '12, 12:18 a.m.

Yes, I was looking for the InteropFactory and I figured that out after some digging around. Thanks again for the assistance

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.