Get used languages statistic from TFS - tfs

I'm new on TFS SDK, and I demand is there a possible way to get a statistic of used langages on a project hosted on TFS 2012 "Programmatically" ?
like on github :

You could probably write your own by accessing a specific solution, (possibly) downloading and 'counting' the number of language resource files.
It is likely that this is similar to what is happening above, it is certainly not a method that I am aware of within TFS.

Related

TFS 2018 - move subset contents to another server/domain

Looking for documentation about moving only a subset of contents from a TFS 2018 server in certain domain and hardware to another TFS 2018 server in another domain and hardware.
More Details :
It is possible to follow general instructions for migrating a tfs to another server/domain, but we need only a subset of the contents i.e. contents for specific team projects in the single default collection that we have. The existing documentation in microsoft docs relates only to all the contents as a whole. We'd thus also like to assess whats recommended : migrate all and delete relevant contents on target or migrate only relevant contents from source to destination. Contents include : code, work items, Build & Release, all history, etc...
There's no way split individual projects out of a team project collection without resorting to third-party integration tools and suffering from a lot of pain.
The best solution is to clone the team project collection using the standard process, migrate it, then delete what you don't want.

TFS - Find In Files

My team has just migrated from VSS to TFS 2013. On VSS, we would often search the entire database for the occurrence of some string (usually a table or procedure name) to find out everywhere it is used. This functionality is clearly not available in TFS.
I have seen some alternatives, none of which sound very viable in our environment. As a result, I started tinkering with creating an app (or extension) to do it directly from TFS. However, the only way I found to do it is to download and search each file one at a time (I also could not find a way to filter the return from GetItems with a list of file extensions), which is slow and undesired.
Is there a faster way, through the API, to search through the source files in a TFS server?
Microsoft has announced that they are working on this exact feature, and it should be coming to Visual Studio Online in Q1 2015, and to on-premise TFS sometime after that.
You can read about it at the bottom of this blog post:
http://blogs.msdn.com/b/bharry/archive/2014/11/12/news-from-connect.aspx
Also the estimated timeline is publicized here:
http://www.visualstudio.com/en-us/news/release-archive-vso.aspx
You can use TFS Administrators Toolkit, here is the description of search feature:
http://mskold.blogspot.se/2012/09/find-in-files-new-feature-of-tfs.html

how to migrate tasks from JIRA to TFS 2012

I have been searching the Tool(freeware) for a clean solution on how to migrate tasks from JIRA to TFS2012.
Already i try to setup tfs-jira-synchronizer setup
I've been trying to set this up on a sandbox server however when I ran the installer I didn't get the acl application file in my virtual directory.
The installer completed without errors.
I recently had to migrate from Jira to TFS.
I ended up writing my own utility to do so. I felt this was a good candidate for 'open-sourcing' so have published it on GitHub here:
https://github.com/KilskyreMan/JiraToTfs/releases
(tested against TFS Server 2012, 2013 and 2015)
Utility handles all main and custom templates, links and attachments.
Documentation can be found here: https://github.com/KilskyreMan/JiraToTfs/wiki
Hopefully this can be of use to other people in this situation.
Cheers - Ian.
Try the integration platform.
http://tfsintegration.codeplex.com/
It's buggy, hard to work with, and usually really annoying but it is your best bet.
There is also this: https://marketplace.atlassian.com/plugins/com.spartez.jira.plugins.bork.tfs4jira
for synchronizing the two systems
If you want a one-time migration of data, I don't know of a free tool for that. I'd probably start with looking at the data formats that TFS will accept, then write a tool that parses an XML backup from JIRA to create a file in a suitable format for import. You could even use the JIRA REST API to get the data but that might be slower depending on how much data you want to export from JIRA
Disclosure: at ServiceRocket we do many data migrations into JIRA each year.

Exporting Test Cases and Shared Steps

Is there any way of exporting Test Cases and Shared Steps from one project to another in TFS 2012 using database queries?
I have tried TFS Integration tool, but it did not work as I expected, so I was wondering if there is any way of doing this by connecting to SQL Server and exporting all items directly from and to the databases.
A few days ago I needed an Excel testcase export for a newer version of TFS (TFS 2013). Turns out that there is still no export to Excel function built-in to TFS (in contrast to E-Mail and Printing) and the tools became incompatible over time.
But I found this Revival-Tool that seems to work:
https://github.com/jorupp/ExportTestCases
Just wanted to point that out even if it may not be directly related to this topic with TFS2012.
You shouldn't work directly in the database, because it is not supported by Microsoft and you could harm it a lot.
I used the TFS Integration Platform tools a lot for migrating TFS2010 projects, but never used it for TFS2012. My experience with that were good and it shouldn't be a problem to migrate all Test Cases and Shared Steps into another TeamProject. If you have the same Work Item Type Definitions in both projects, you don't need to create field mappings.
Another option would be to use Excel as "Export" and "Import" cache, but you might loose some information, because not everything could be shown in Excel, e.g. Steps of a TestCase, the history, Work Item Links.
If you are skilled in programming using TFS API, you could write your own small migrator, but this could be a lot of effort.
All in all the TFS Integration Platform should be the easiest and best way, so what have been your expectations that have not been fulfilled?
You can use an alternative methods.
First export all Test cases using "Test case extractor."
Them import them in new project using "Test case import tool."
Adding to the point mentioned above, for exporting the test cases you might find the below link more useful:
http://tfstestcaseexporttoexcel.codeplex.com/
I have given it a try and found it very useful and easy to use.

TFS2008 counterparts in TFS2010

I used to invoke the BuildStore.asmx to get the build info from TFS 2008, such as work items, build steps, change set, etc.
But recently, our project moved to TFS 2010. And the BuildStore.asmx is deprecated. TFS 2010 offers a new object model to provide these info.
So, in order to minimize the code change, I want to know the counterparts in TFS2010. Thanks for any hints.
I found some info about the build API in TFS, such as:
http://blogs.msdn.com/b/buckh/archive/2006/09/14/getbuilduri-getbuilddetails.aspx
But they are mainly about TFS2008.
You can make use of direct service-calls. The counterpart you re looking for should reside under "http://TfsName:Port/tfs/TeamCollectionName/Build/v3.0/BuildService.asmx".Another, possibly far more efficient, approach is to write code against TFS-SDK, which should 'survive' from TFS-version to TFS-version. There are numerous resources out there regarding material, this article by S. Raiten seems to be a good jump-start.
I just found some useful material:
http://social.msdn.microsoft.com/Forums/en-AU/tfsgeneral/thread/92766815-c09b-422b-91fc-5e745e3aaa21

Resources