How to associate workitem with changeset to deliver change?
Hi All,
I've tried the API snippet for delivering a changeset to Stream.
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!
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
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?