Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to associate workitem with changeset to deliver change?

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!

0 votes



3 answers

Permanent link
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);

0 votes


Permanent link
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?

0 votes


Permanent link
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?

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Dec 01 '10, 11:01 p.m.

Question was seen: 6,572 times

Last updated: Dec 01 '10, 11:01 p.m.

Confirmation Cancel Confirm