It's all about the answers!

Ask a question

Need to programmatically create a work item in RTC when a record is created in CQ


Denise Lindsey (1326) | asked Apr 12 '16, 9:30 p.m.

New to the API world.  Is there an example out there of the steps/code needed to generate the creation of a work item in RTC when a record in CQ is generated and saved?  Basically - automatically generated the bridge link so as the user in CQ does not have to create 2 records.  Any guidance is very appreciated!

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Apr 13 '16, 2:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
One solution is the CQ synchronizer.

With respect to API start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/

https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ explains the basics and links to other posts. It uses the WorkItemOperation from https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation

Comments
Denise Lindsey commented Apr 13 '16, 1:14 p.m.

Thank you Ralph!  Will check out the links!

Can I extend this to ask a couple questions about the synchronizer that I'm having trouble answering as well?  Can we install it on Websphere?  And can you customize it so that it only syncs only at that creation time?  We don't want to mimic workflow.

Thank you in advance!


Ralph Schoon commented Apr 14 '16, 2:24 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

It would make more sense to ask a new question about the synchronizer, as that would more likely attract the right people.

Websphere: I can't remember that I had to install the external part into an application server. I would consider to read the install help.

The synchronizer has two ends one close to CQ and one close to RTC. The one in CQ is driven by a query, but the one in RTC is driven by work item changes. However you can set up what attributes to synchronize and also only sync one direction. So you don't have to sync the workflow (which s a good idea). You can also avoid sync conflicts by avoiding syncing attributes in both directions.

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.