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

clarification on the topic "Delivering Change Sets Using Java Client Libraries"

We are reaching out for clarification regarding the delivery of change sets using Java Client Libraries in EWM. We are encountering an issue where the compareFlags value remains 0, preventing the deliver method from executing as expected.

Implementation Details:
We are using the following methods:
  // Compare workspaces to get change sets
            IChangeHistorySyncReport changeSetSync = workspaceConnection.compareTo(
                    streamConnection,
                    WorkspaceComparisonFlags.CHANGE_SET_COMPARISON_ONLY,
                    Collections.EMPTY_LIST, monitor);

       // Attempt delivery
            workspaceConnection.deliver(streamConnection, changeSetSync,
                    Collections.EMPTY_LIST,
                    outgoingChangeSets, monitor);
We created an outgoing change set in EWM and used changeSetSync to compare the local workspace and the stream from the server. However, when we run the automation, the compareFlags value always remains 0, causing the deliver method to have no effect.

Reference Output from IDE Console:
com.ibm.team.scm.common.internal.dto.impl.ChangeHistorySyncReportImpl@b55b73e1  (localTime: 4, remoteTime: 4, compareFlags: 0)

Additional Information:
We ensured that a comment was added to the change set before attempting delivery.
A RHP element was created/modified, ensuring it differs from the data available on the server (AM stream).

Could you please confirm if we are passing the correct parameters to the above methods? Additionally, we would appreciate guidance on whether we are missing any necessary steps to ensure the expected behavior.

0 votes



One answer

Permanent link

I am not sure what I should think about pasting incomplete code snippets, creating a question around it and asking for an answer.


You can setup your development environment  following https://jazz.net/library/article/1000 - just lab 1- then you can search for the usage of the methods you are interested in.

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
× 12,035
× 10,956

Question asked: 4 hours ago

Question was seen: 28 times

Last updated: 2 hours ago

Confirmation Cancel Confirm