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

Cross server create link between change set and work item

Hello to the forum members,
I am working on an RTC API extension which creates a link between change-set and work-item.
I am using the API
com.ibm.team.filesystem.client.workitems.IFileSystemWorkItemManager.createLink

I am trying to figure out whether it is possible to create a link cross server, when the change-set and work-item are on different servers. I have two RTC servers running on my machine with different ports. When I try to run my code I get ItemNotFoundException.

I tried to configure a "friendship" between the two servers that will allow me to perform the following on RTC UI:
1) Select change-set in server 1 in pending changes view.
2) Associate work-item.
3) In the "Select Work Items" dialog click on project area combo-box in the top-right corner of the dialog.
I expect to see the project area from server 2.

Is there an association that will allow me to see the project area from the other server ?

Thanks,
Gidi

0 votes



One answer

Permanent link

Making the server friends is not enough. You would also need to add association for the ccm application on server 2. Open the project are on server 1, go to 'Association' section, add the ccm application on server 2 and add the entries for "Provides - Change Sets"  and "Uses - Change Sets".

0 votes

Comments

Thanks Surya for your reply. I added both "Provides - Change Sets" and "Uses - Change Sets"  and still was not able to see the project area on server 2 in the list of project areas to select work item (dialog "Select Work Items"). createLink still throws ItemNotFoundException.

Gidi, you can not create a work item link from a change set to a work item in another repository using that dialog. 


You can only use the Create Change Request dialog. Only this one creates a link type that can cross repositories.  

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,938
× 1,202

Question asked: Jan 18 '18, 6:08 a.m.

Question was seen: 2,374 times

Last updated: May 20 '19, 11:22 a.m.

Confirmation Cancel Confirm