Anyone knows how to search for changesets with no Associated Code Review with a TFS Query or similar? It can be also a query on TFS Data Warehouse.
When you request a code review from a changeset, it's not Bi-directional, only link one way.
This means you can't directly know if a changeset was code-reviewed or not from changeset ID. To get the association, you need to go through work item. There 's a work item called code review work item, a sample query as below, through that way you could find the code review work item for any changeset, as long as that changeset was associated with a TFS work item.
However, for your requirement, it's not able to use a work item query to do this. You may have to use TFS API to ahcieve it just as jessehouwing suggested.
Related
Presently I use my email notifications to manage TFS tickets that have a comment which I have been #mentioned on.
Is there a way to query for comments that include mentions of me? I want to ensure I am commenting back on all TFS tickets directed at me using a #mention.
ID in #RecentMentions gives you all work items where “I am mentioned” in the discussion section.
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.
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
We recently started using Team Foundation Server 2012 and are using the code-review feature to have other developers review code changes. It seems to work great; however, as a project lead I would like to be able to see that a given changeset has been reviewed by someone else.
For example, say Developer Bob makes changes and requests a review on those changes. This generates a shelveset for the changes and creates a code-review work item for the requested review. Developer Alice reviews the changes, makes some comments, and finishes the review. Bob incorporates Alice's suggestions and checks in the changeset.
As a project lead, I search for changesets and see that Bob checked in changeset 123. If I look at this changeset, there is an associated work item for the task Bob was working on, but no indication that the changeset was reviewed by anyone else.
If I look at code-review work items, I can find the things that have been reviewed and see the comments. This is cumbersome as I have to sift through work items and find the one that happens to be related.
How can I tell from a given changeset that it was reviewed, as well as see the review comments?
Changesets can be linked to any kind of Work Item, including Code Reviews. When you request a review on a set of pending changes, they are automatically associated to the new review Work Item. When you double click on the changeset you should be able to see under Related Work Items something like this:
In this case there were 2 reviews for this changeset, the second one was automatically there when it was requested. The first one had to be manually linked, just like the Task.
If you double click on the review item, you can see all the comments.
Tip: If you want to do a review post-checkin: go to the History view --> double click on the changeset --> Actions --> Request Review.
Tip2: It is a bit annoying that you have to manually check that each changeset has a review. If lack of review is really a problem for your team, I would suggest setting up a check-in policy.
You can make queries searching for code review work items and you will find associated changesets on the field Associated Context (Changeset id or Shelveset Name)
Inside the Code Review, you can check the changeset via the link at the top of the work item view.
Of course, there is another option that is querying directly to TFS Database (Warehouse) but it's tricky and requires access to that database and knowledge on the schema.
from work item history u can check out all the change sets ....changeset was reviewed by anyone else this functionality TFS does Not provide!
may be i have lost Something but i don't see any answer regarding to change set that is was reviewed.
but you can check the change through (history , and sort the source control by date ).
good luck!
Hmm I think the question itself is pretty straight-forward...
In Team Foundation 2010, is it possible to link a shelveset to a work item in some way ?
If so, is it possible to automatically create this link when the developer shelves and associates with a corresponding work item ?
We're working with alot of shelves, it may get messy after a while, so querying our pending work items and knowing the shelveset related to the task at hand would quicken things up.
Is it possible to change a work item state everytime I shelve my work and associate a work item?
And at last but not least, would it be possible to query all work items linked to shelves ? (Assuming we can link them)
Thanks in advance!
~