It's all about the answers!

Ask a question

How to associate workitem with changeset to deliver change?


William Fu (4611) | asked Dec 01 '10, 11:01 p.m.
Hi All,
I've tried the API snippet for delivering a changeset to Stream.


// deliver the changes to the stream
IChangeHistorySyncReport sync =
workspace.compareTo(stream, WorkspaceComparisonFlags.CHANGE_SET_COMPARISON_ONLY,
Collections.EMPTY_LIST, monitor);
workspace.deliver(stream, sync, Collections.EMPTY_LIST,
sync.outgoingChangeSets(component), monitor);


Now, delivering to the newly create streams works perfect.

But when I try to deliver to the stream that I created using a scrum template. After running the delivery code, the changes made are still just in the workspace and NOT delivered to the stream.

I had to explicitly use RTC's client and to associate the change set with a workitem.

I'm guessing that's where the problem lies.
Now the question is, how do we associate the changeset with workitem?

Any help is appreciated. Thanks!

3 answers



permanent link
Michael Valenta (3.6k3) | answered Dec 02 '10, 9:20 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
I believe the process associated with a stream of a Scrum process area requires either a work item or a comment. Setting the comment can be done fairly easily:

SCMPlatform.getWorkspaceManager(workspace.teamRepository()).setComment(changeSet, comment, monitor);

permanent link
William Fu (4611) | answered Dec 03 '10, 12:00 a.m.
I believe the process associated with a stream of a Scrum process area requires either a work item or a comment. Setting the comment can be done fairly easily:

SCMPlatform.getWorkspaceManager(workspace.teamRepository()).setComment(changeSet, comment, monitor);


Thanks for the reply!
I've now done both associated a work item and added a comment.

However, seems like the change set still can't be delivered to the stream.
I'm not seeing any API errors though.
Also, when I manually use the RTC GUI to "Deliver" the pending change set, it can complete successfully without any errors.

Do you have any idea what might cause that problem?
Could it be because I do did not assign an Iteration to the associated work item?

permanent link
William Fu (4611) | answered Dec 03 '10, 1:31 a.m.
hmm, guess not.
I've set the WorkItem Planned Iteration as well.
However, the changes are still not delivered to the specified stream through API.

Running out of options here.

Could this be a API bug?

Your answer


Register or to post your answer.