Does anyone know what this field [Not a Field] means in TFS WorkItemsAre table? I am trying to understand the schema and this is not making any sense to me.
Accessing the operational datastore is not supported as in every release we will make break changes. You'd rather move to the TFS API or the TFS Warehouse database to get the data your are interested in.
What is it that you are after?
Related
I have a need to get a list of all branches with paths and IsDeleted status. I can do this with the API from a development environment, but I will be unable to use the API in the production environment. A workaround is to query the TFS database for the data I need. I found the branches table (tbl_Branches), but it doesn't have a status column. I am not sure what I need to join on to find the status.
I am looking for the status that is from the property branchObject.Properties.RootItem.IsDeleted if using the API.
Does anyone know what to look at to get the same status for the branch as what the API uses?
Thank you.
The branches are tracked as items. So you need to join "tbl_Version" to get all the versions for the branches. The entries with "DeletionID" > 0 means ther are/were deleted. However, we don't recommend to query TFS Database directly just as Daniel mentioned in the comments. You should avoid this if you have any other workaround.
In Team Foundation Server (TFS), currently I am able to query the work items (bugs, tasks) by #CurrentIterationPath and status (closed etc.). But I am in need of fetching all users who worked today and the number of hours they logged. Could anyone out there help please?
I am using tfs 2015.
CAVEAT what you ask is a bad practice and I always advise against. TFS is not a time entry tool: it is designed to support development team in being agile not to support accounting! If you need that there are tools that extend/integrate with TFS, designed for that purpose.
That said, there is no OOB report, query or API that will extract similar information.
A possibility is to use an Excel Pivot Table that reorder the export of a WIQL query. See here and here for Excel integration with TFS.
Another path is to write a SSRS custom report but I doubt it offers all data you asked for and it is a non trivial exercise IMHO.
I require to get all "Bug" entities from a TFS Team Project, for a specific date, it means that entities atributes should have values they had the date I specify. Kind of all bugs snapshot for a specific day.
Is it posible to do via a TFS query?
Thanks for your attention.
Probably you can not do this via standart tools provided by TFS portal.
But there is TFS API for you. Look at WorkItemStore class. It has many methods including GetWorkItem(Int32, DateTime) Gets the previous state of a work item that is specified by ID and date. https://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.workitemtracking.client.workitemstore.aspx
Thinking in user stories, my requirement would be:
As a development department manager, I want to get the full list of iterations by team project, in order to have a full view of the milestones set for all the teams.
My initial approach is a query to the database. Which could be a good approach to build this query?
Is there another way to get it?
Querying the TfS operational store directly is unsupported and can lead to your system being unsupported. You should use the reporting tools instead.
TFS creates a data warehouse and cube where all the information is stored for reporting purpose's. You can just plug Excel into the data warehouse a query tye data that you need. If you want trend analysis you can also query the cube.
http://msdn.microsoft.com/en-us/library/bb649552.aspx
If you have team explorer installed you can also retrieve work items from queries to the operational store through the API. Any query that you can get in TFS you can load into excel.
http://msdn.microsoft.com/en-us/library/ms181675.aspx
Since we migrated from VSS to TFS the version history shows a single user and day for every commit. The original users and dates for each commit are displayed in the check-in comment.
Is this the best we can do? Isn't there a way to migrate putting the original User into the "User" column and the original date into the "Date" column?
This is the expected behavior. There is no supported way to migrate history from a non-TFS repository and maintain a true history (outside of comments). TFS team does this on purpose so as to maintain the integrity of the audit trail (instead of having TFS "lie" about when that change was checked into TFS).
In practice it is usually sufficient as you still have the changes in the proper order, and if you're going back to inspect history the information you want (date/time, user) is still captured, just not in the ideal location.