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.
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.
Upload an attachment
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.
Add an attachment
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.
Related
How can I see who has accessed files in a team project in TFS? Normal View History only shows you check ins. And exporting the Audit Log from TFS doesn't show you this info. I am interested in knowing who has made a read/get latest access on a specific team project.
This needs to be documented for my QA department. Are there any TFS SQL scripts that can show this info?
Sorry, we do not have this kind record of User's each operation such as read/get latest on a specific team project.
As you have mentioned history command will only displays the revision history of one or more files or folders. It only related to each changeset(checked in files).
Audit logs basically display some modify operation in TFS will also not include any access info at present.
Dig into sql database to query such information maybe a solution. However, highly not recommend to do this, since it may cause some potential risks of your database. And it will also lose support from Microsoft.
This should be a feature quest, you could submit it here. Our PM will kindly review any suggestion.
We are working with an offshore development team, I need to send them on a daily basis the list of available bugs and work items from local TFS. I could not find any ready component that would help with exporting the bugs details along with history comments, and attachments.
The excel sheet thing, helps if you want to send it to some one who also has access to the TFS server.
Any clue?
Thanks for the #Daniel and #Cece for your help guys.
I created a solution using .NET TFS assemblies, to help me with this task. The tool connects to TFS and allows you to choose one of your saved queries. It will then export all the bugs / work items information into a folder as HTML, and it will include the attachments and comments on bug if any. It also creates a nice index page.
In case this helps any one, here is the link to download release one excutables from codeplex
https://tfsworkitemsexporter.codeplex.com/
please also feel free to copy the code and edit as you like
You would need to use TFS API to get the attachments and history. Check the REST API:
https://XXX.visualstudio.com/DefaultCollection/_apis/wit/workitems?ids=xx&$expand=all&api-version=1.0
I am transferring a jira issue to TFS WIT in my company. My team used TFS2012, they use JIRA. So I want to migrate the JIRA issues into TFS2012 WIT.
I want to preserve all the basic fields, attachments and comment history & work logging.
Any suggestions regarding tools or processes for this?
I looked into dumping the issues into an Excel spreadsheet, but that doesn't include attachments or comments.
Integration Platform
Good luck, the migration isn't usually a lot of fun.
using comment-plugins we can export comment on excel....
here we can find the comment plugins
https://confluence.atlassian.com/display/JIRA/How+to+add+comments+to+Excel+export
(we could map this to History field in TFS once we export it to Excel)
nearly 3week i worked on this task
finaly i got it
For this task we simply add USETFS plugin in jira that carry everything i mean comment tfsid and attachment everything its come under USETFS plugin in jira.
I installed the Basic TFS trial version and now it got expired.
It is mandatory for me to get the history of TFS.
Where does it store the history? Does it store it in the SQL Express?
Is there any way to get the saved history?
Digging through the database is not trivial. You'd have to piece the history back together and de-deltify all the blogs.
It would be much easier just to get your TFS instance working again so that you can get the files out of it. TFS Express 2012 is now available, and has no such time restriction. It's free for up to 5 users. You may be able to upgrade your existing installation.
If you are still able to do a get, you could hook up git-tfs. Once you execute the git-tfs clone, you will be able to view the history using git. You can look at this tutorial for more information.
Did you consider trying querying the TFSWarehouse and use and automatic script to recreate history ?
Reference: Export TFS 2010 History to Excel or Text Document
Is there any focused documentation on achieving the following with TFS. I find myself having to read through tonnes of documentation on MSDN and I find nothing is listed under topics as such or maybe I don't know what to look for. I have no experience in TFS other than checking files in and out and I am still trying to understand what each of these mean and how to find it in the docs, without much luck.
Gated check-in + continuous build for select projects.
Gated check-in + scheduled builds for other select projects.
Dashboards and reporting to select individuals or groups
Access for testing team members to only selective work item creation of the TFS project they are assigned to. They
should be able to get the latest version of the code and be able to log a workitem-bug, workitem-issue, workitem-testcase but they should not be able to create for eg. workitem:use case.
Testers should not be able to modify code.
Sending mails to persons who have a work item assigned to them, with
select persons in copy.
Sending of emails to anyone against whom a bug is assigned. When bug
is closed the person who raised the bug should get notified via
email.
Sending mails to key persons of a project defined somewhere in TFS,
on build failure of that project.
If anyone has already done something like any of the points listed above then can you please let me know the steps? Somehow the documentation jumping too many links and going in various tangents.
Thanks for your time and patience..
In order:
Go to the Microsoft TFS site at http://msdn.microsoft.com/en-us/vstudio/ff637362.aspx. Look for the training videos. Most of the stuff you want is covered.
The Visual Studio Team Foundation Server Branching and Merging Guide at http://vsarbranchingguide.codeplex.com/ is an excellent guide.
The Introduction to Visual Studio Team Foundation Server 2010 Training Kit at http://www.microsoft.com/en-us/download/details.aspx?id=27152 is helpful.