Java API extending - create a new work item and associate with a change set
Accepted answer
- https://rsjazz.wordpress.com/2012/09/20/the-rtc-workitem-server-link-api-linking-to-work-items-and-other-elements/
- https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/
You might also want to look at https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ , https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ , https://rsjazz.wordpress.com/2013/03/14/what-apis-are-available-for-rtc-and-what-can-you-extend/ and some other posts that talk about creating and modifying work items.
Comments
Thanks Ralph for the excellent examples. I am able to create a Change Set and Work Item, and I have the following code (based on your examples) which tries to link Work Item to Change Set. But when I open the Work Item in the Jazz GUI, the Links tab does not contain any reference to the Change Set (or anything else).
I had not saved the WorkItemWorkingCopy after linking the Change Set and Work Item. After doing that and also changing WorkItemLinkType to RELATED_CHANGE_MANAGEMENT the Link tab now contains a nice link to the Change Set. Thanks Ralph Schoon for pointing me in the right direction, and also for the instructions on configuring RTC for API development. Your articles are great!
1 vote