I'd like to setup some sort of work item tracking that I don't necessarily have to push up to the server, but can if I want to. I would think of this as a To Do list or similar to work items in TFS. Anybody know of how this can be accomplished?
If you put //TODO: blah comments in code you can view them all by opening the Tasks window (from the View Menu).
It will automatically find all // TODO: comments and give you the list of them.
Related
Every time when I check-in the code in Visual Studio, I need to provide the product backlog item's work item id (task id) in the pending changes window's Related Work Items section.
If I'm working on a module for a week, on each check-in I need to provide the same work item id (at least 5 to 6 check-in in a day). It seems repeating of work.
Is there any possible way to add the work item id by default in the "Related Work Items" section in the Visual Studio settings?
I'm using Visual Studio 2017 and TFS 2012.
Sorry, it's not able to do this. It will not cached the ID you previous entered.
Instead of entering ID, you could also drag work items here to link work item to check in.
Or you could do it the other way around, open the work item and add a link to your previous changeset.
Get the changeset ID by looking at the History of one of the changed files
Open the relevant work item
Select the Links tab
Click the Add button
Select "Changeset" from the Link type dropdown
Enter the changeset ID (from step 1) into the Changeset field, and click OK
Save the work item
After this the work item will also appear in the changeset's list of associated work items.
No, that`s not possible. You may add all your changes to work item after your work will be done:
You may try to use a custom tool with TFS API like that: How to checkin source code with work item associated using TFS API.
I am trying to create an extension for Team Explorer window in VS2017.
I want to put another button on the changes screen, or even hook into the commit method, so that I can take the comments, and integrate with a Kanbanize board.
It seems like it should be possible to but a button onto the Team Explorer window, but there doesn't seem to be any documentation I can find, or examples.
I have looked around and can only really find this link below, which I tried but doesn't seem to work, but isn't really what I am wanting to do.
https://hamidshahid.blogspot.com/2017/09/extending-team-explorer-in-vs2017.html
The Team Explorer extensibility is designed to enable adding new sections to an existing page, but altering the existing sections to change their UI/behavior is not allowed. Given this design constraint, you can add your own UI, but it'll need to be in a separate section. You should be able to read the selection data from other sections on the Git Changes page via IChangesExt.
Hope this helps.
We recently upgraded our TFS 2010 to TFS 2013. I like most of the changes, but some of them not so much. Did Microsoft really took away the feature that was in TFS 2010 where one could attach to an work item by checking a checkbox next to the work item? The way I currently do in TFS 2013 is, before checking in I run my TFS query, remember the work item number, then do 'Add By Id' or something like that, type the ID and enter. It might not seem big deal to many, but I absolutely do not like this. Is there a way to get those checkboxes next to the work item back? If not, is there a better way to do that process?
It has changed a little but I guess the closest experience is to create a personal query or add a shared query to your favourites.
In the Pending Changes Window under Related Work Items click the Queries drop down and select the relevant query.
The results will open in the main window and you can drag and drop a work item into the Related Work Items section which will link it to your changeset.
If you have VS Premium or Ultimate then you can use the My Work window in Team Explorer which will list your assigned work items in the Available Work Items section and you can just drag them into In Progress Work.
I am aware you can use the special comments
//TODO: Something to be done...
and then see them in View-> Task List
But is there a way for me to add a comment with a different custom name and also see it in the Task List?
For example
// WorkIP:
Thanks,
It is called "custom comment tokens" and it is actually explained pretty clearly over here.
In short, you can add and edit them by going in Visual Studio to
Tools->Options->Environment->Task List
You can also select the priority of the comment token in there.
I recently switched from a Java based project to a C#/.net project. I previously used IntelliJ which had the concept of change lists where you could group your pending changes together and check each group in individually.
I have two problems with the pending changes window in visual studio.
1) Every time I check anything in, visual studio checks the checkbox beside Every pending change in the list forcing me to uncheck each and every one of them so I don't accidentally check something in. This is extremely frustrating because there are several files that I need to keep changed to correctly run my code locally. Is there any way to change this default behavior to not check any pending changes on check-in?
2) Is there any way to group changes into lists as opposed one big bucket of changes? Again this becomes frustrating when I need to check something in, but I have to search through the files and check the pertinent changes. I understand that shelve sets exist using TFS, but that doesn't cut it for me, especially since I have several changed files that I need to keep altered in order to correctly deploy locally, and I rarely ever want to check in.
Thanks in advance!
I have to manage lots of changes every day in Visual Studio, and I've got a few tips for you, but no silver bullet:
Use Ctrl+A to select all items and then press a checkbox to toggle the checkboxes for all items. This can be useful when performing changes to only a few items -- just uncheck everything, then make sure you have only the items checked that you'd like to update.
Use Ctrl+Click (then right-click) to 'Undo' selected changes. By default, the undo action will only apply to the selected items.
You might want to experiment with using multiple Workspaces -- and then filtering changes by workspace or by solution.
No, I don't know of a way to fix your problems. It sounds like the best answer would be to refactor your configuration settings or code so that you can check in all of your changes.
If your changes are in different projects you can partition what you check in using the Source Control Explorer by right clicking on the project folder and checking in that way. It will auto check only the files in the folder you right click on. Just keep in mind the Source Control Explorer gives you some other options. Otherwise, I do not know of a way to manually control your change sets file-by-file thought if this exists I would like to know about it too.
You can also use Ctrl+A to select all items and then press Spacebar to toggle the checkedboxes as checked/unchecked.