I'd like to extend tfs, so that when I hit a specific key combo, it enters in my name and the current date into whatever text field I have the cursor currently in.
Is there a way to do this?
I was able to get Resharper to do this in code, but that doesn't' work in TFS (Darn you to heck Resharper!)
I'm running vs2013, and it's Team Explorer 2013 as well
I believe you should be able to create a Visual Studio Extension to do this. You can read about how to do that here: http://msdn.microsoft.com/en-ca/library/dd885119.aspx
Related
I'm trying to produce a report that has every changeset for a particular user using TFS/Visual Studio 2015. I found a useful SO post (How to see the Check-In History of a particular user in TFS?) that almost got me there.
I'm able to use 'Find Changesets' to list every changeset for a particular user just like I want to. The problem is that I'm unable to select all (or anything more than one at a time) to copy the results into a spreadsheet.
Is there a way to generate this type of report using Visual Studio 2015? If not with the IDE, are there recommended tools? I've seen Team Foundation Sidekicks mentioned a few times but the site seems a bit out of date.
Team Foundation Sidekicks is a good option. It would be easy to help you achieve your goal. Team Foundation Sidekicks is not out of date, instead, this tool is always up to date (You can see on its website that the version 6.0 supports VS/TFS 2015).
Under History Sidekick, select the file/folder/TeamProject that you want to check, then choose a User name, or just leave it blank. If you leave the User name blank, you'll get the changsets for all users. After that, you can save the list to a .csv file.
I would like to send my coworkers a link directly to a line number in a file in our TFS repo. Is this possible? If so, how? We are using TFS 2015.
Currently, the best way I have found is to link to the file like so:
http[s]://{TFS-SERVER}[:{PORT}]/tfs/{PROJECT-COLLECTION}/_versionControl#path={PATH-TO-FILE}
Then, Ctrl+G to manually enter the line number. Before I dig through the JavaScript to find how Ctrl+G works, I am hoping someone can help me out.
I have tried variations on this theme, but without sucecss:
http[s]://{TFS-SERVER}[:{PORT}]/tfs/{PROJECT-COLLECTION}/_versionControl#path={PATH-TO-FILE}#line={LINE}
P.S. My issue is similar to this issue but rather than for Visual Studio, I am looking for a link via the TFS web portal.
Once you select a piece of code in VSO code editor, it is possible to copy a link to that section (see picture below). It looks like TFS has pretty similar url structure, maybe it will work.
Generated link structure
https://{PROJECT_URL}/_versionControl?path={FILE_PATH}&line={SELECTION_START_LINE}&lineEnd={SELECTION_END_LINE}&lineStartColumn={SELECTION_START_COLUMN}&lineEndColumn={SELECTION_END_COLUMN}
Just heard from a guy inside of Microsoft that adding &line=5should work. My local tests show it only works for Visual Studio team Services and doesn't work on TFS 2015 update 2. You'll probably have to wait until update 3 for this feature to hit TFS.
In the mean time, the JavaScript simply looks for a div with the right linenumber attribute:
<div linenumber="5">...</div>
I need to let users register bugs similar to how it is done in Bug tracking systems.
I'd like to create user friendly form with a layout which will guide user. Standard Create New Workitem interface is too overloaded for users.
Today we manually look through inbox and register bugs in TFS ourselves. This is really a pain. Users often do not mark the message in subject as a bug. You need to read it to understand user has a problem. Sometimes you need to ask them about the criticality level and what the deadlines for fixing it are.
It is easy to miss important message and this process distracts from main activity.
(Based on you having Visual Studio and having already connected to TFS in there)
In Visual Studio, via the menu, choose Tools > Process Editor > Work Item Types > Open WIT from server
EDIT: You will need to install the Microsoft Visual Studio Team Foundation Server 2015 Power Tools Extension in Visual Studio to gain access to that menu option above
You will then be presented with a popup box. At this point you will need to navigate to the Project Collection you wish to make changes in. Once selected you will then be presented with a list of forms you can edit. e.g. Task, Bug, Code Review etc.
If you select Task you will then be taken to a form where you will have 3 tabs. Fields, Layout and workflow. From here you have a certain level of customisation available.
I found a couple of articles (below) around customising templates. One is for TFS 2015, the other is for TFS 2013.
http://blogs.msdn.com/b/visualstudioalm/archive/2015/12/10/adding-a-custom-field-to-a-work-item.aspx (TFS 2015)
https://www.simple-talk.com/dotnet/visual-studio/customizing-team-foundation-server-2013/ (TFS 2013)
NOTE: Menu option Open WIT from server will make changes directly on the server. There are other option where you can make changes locally, then import those changes in. The above is just a way to get you to the screen to customise the forms so that you can take a look around.
I'm working with TFS 2010 and Project 2010 Feature Integration pack and the Scrum for Team System v3 process template. Within the Project Server tab, I'm trying to set the default value for "Submit to Project Server" and "Enterprise Project" (which works fine), but when the Project Backlog Item is created/saved, it always fails when trying to sync with Project Server with the error message in the title of this post: TF285017: The Assigned To field cannot be blank.
I've Googled the error code, and it seems like there is no documentation for it anywhere. Can someone help?
Ultimately I fixed by adding the Assigned To field to the template and making it required. This probably isn't the best way to solve this issue, but does get around the error (and making the field required was something I was going to do anyway).
As the error states, in the TFS process template for the backlog item, the Assigned To field is mandatory. It needs to be filled before it can be synced with the other system.
You might try to remove the required flag from the Assigned To field in the workitem by using the TFS Power Tools process editor.
Is there any way to create a query in TFS that prompts you for query parameters at runtime?
E.G. A query named "[TeamMember] Undone Tasks" where TFS prompts you for the team memeber at runtime?
Sorry - this is not possible at the moment in TFS 2008 and I haven't seen that feature in any of the TFS 2010 beta's either. I have seen it asked for before though so I'm sure the team know that it would be a nice thing to have.
You could use the API, a query in Excel or hook Excel into the datawarehouse to give you that type of data if you wanted it.