We’re in the process of migration from Rational RTC to TFS 2018. We’ve figured out to map work items between the two but having difficulty moving attachments and comments. Does anyone have experience with this? Perhaps using the TFS REST API ? Any help would be appreciated. Migrating from Rational 6.0.4 RTC/CCM to TFS 2018.
Asked
Active
Viewed 373 times
0
-
Have your issue been solved, any update on this? If my reply helped or gave a right direction. Appreciate for [marking it as an answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) which will also helps others in the community. – PatrickLu-MSFT May 10 '18 at 02:17
1 Answers
0
Not familiar with RTC(Rational Team Concert). One thing is clear, there are no tools for use to directly migrate artifacts and Projects from RTC to TFS. You could submit a user voice on IBM's related forums.
If you already get the work item file attachments and comments from RTC. It's able use TFS Rest API to update TFS work item.
POST https://{instance}/DefaultCollection/_apis/wit/attachments?api-version={version}&filename={string}
To attach a file to a work item, upload the attachment to the attachment store, then attach it to the work item.
PATCH https://fabrikam-fiber-inc.visualstudio.com/DefaultCollection/_apis/wit/workitems/299?api-version=1.0
The comments in TFS work item is Discussion filed, you could try to use Update a field to update the value.
PATCH https://fabrikam-fiber-inc.visualstudio.com/DefaultCollection/_apis/wit/workitems/299?api-version=1.0
More details please refer Update work items Rest API.

PatrickLu-MSFT
- 49,478
- 5
- 35
- 62