How to search the changed fields in TFS History? - search

I am working with TFS 2010. I need to find a way to search the fields that have changed which are tracked in the history of a work item. As fields are changed and updated they get tracked in History and you can view them by opening the "Show Changes(Fields)" dropdown. Is there a way to search this?

There is no built-in function for that however I needed the same thing some time ago and I wrote a little utility called TFS Helper that does it (and some more things).
You can get the source code from codeplex. The tab named "Work Item Field History" is what you want. It shows changed fields of a work item with the number of changes. You can see all changes when you click on a field.
http://tfshelper.codeplex.com/

Related

Dynamics CRM 2011 disable jewel menu item

I want to disable "Save --> Save & New" menu item in jewel menu. In Customizations.xml file, I added below line. But "Save --> Save & New" menu item is still show in the menu.
<HideCustomAction HideActionId="Mscrm.Jewel.SaveMenu.SaveAndNew.HideAction" Location="Mscrm.Jewel.SaveMenu.SaveAndNew"/>
How can I resolve this issue ?
Are you sure you added that line to the correct DiffXML (and save and published after importing the modified solution)? You may have done that within one entity, which would cause that one entity's menu to no longer have save and new. I also usually see the entity name within the location, I don't see it in yours.
Use the Ribbon Workbench if you are having issues modifying the ribbon or sitemap or a variety of other 3rd party point-and-click solutions. Stay away from the DOM as it is unsupported.

In Visual Studio 2012, how can I set a default related work item for TFS commits?

I'm working on refactoring a single code file from a TFS repository. I'm doing this refactor in chunks, making regular small commits. Our TFS policy requires me to associate every commit with a work item.
This means that every few minutes, when I right-click the code file and click Check In Pending Changes, I'll also have to click Add a Work Item by ID underneath Related Work Items, type in a number, and hit enter. The work item thing starts to get pretty tedious after a dozen commits on the same file and same work item in the space of an hour.
Above: The work item dialog I'm referring to, right at the end.
Is there some way to have a work item already specified by default, so I can just start the Check In process and have it already there?
I'll be working with this one file and this one work item for the next few days with lots of committing. If setting this up takes a few minutes and is fiddly, that's fine. It will be worth the time.
I've asked the TFS Product Team for this feature in the past (to remember the last work item I associated with a check-in). But AFAIK this is not currently possible.

get all changed files for a TFS workitem

I am working with Visual Studio 2012 and TFS 2013.
Is it possible to obtain the list of files affected by a workitem?
Currently, using the Query Editor under Team menu, I am only able to get all the changests commited for a workitem but for a code-review it would be interesting to get also directly the list of affected files.
In Source Control Explorer right click on a folder and on context menu "View History", will list all changeset's, select one and on Team Explorer show the informations about files changed.
You can get the same information by command line:
tf changeset /collection:http://servername:8080/tfs/DefaultCollection 123 /noprompt
to show the windows don't use "/noprompt" parameter.
Try using TFS Sidekicks. You can search for work item and it will give you a consolidated view.
Install sidekicks from http://www.attrice.info/cm/tfs/ for your relevant TFS version
Open side kicks and connect it to TFS (usual tfs dialogue)
Click Tools -> Code Review Sidekick
Click by Work Items and select the appropriate Project and Query (TFS explorer workitem query). Alternatively, you can search by changesets
Select the appropriate work item.
This will show all the changes for that workitem
So the goal here, you want to compare all of the changes to a file,
from its state before the first checkin of this workitem and the
last checkin of the workitem. i.e. collapse all of the changes
Right click the file you are reviewing, the one associates with the
highest changeset number, and select 'compare with previous (not in
view)'
This will show you the complete difference in your VS configured
diff tool.
If the file is new and has multiple checkins, select the
one with the maximum changeset it, and select 'compare with oldest
in the view'

How to place todo reminders in Dreamweaver code

I am coding in Dreamweaver for a change. Is there a way to place reminders in your code, for example in the form of a "todo list"?
I know Eclipse has this option. You can place //TODO before the line of code and the marker is placed in a list. You can view this list at will and conveniently go back to the exact spot later.
After weeks of coding I sometimes forget to take care of certain things. A todo list in the code itself would really help out, anyone know of a method for this in Dreamweaver?
Dreamweaver doesn't have a dedicated interface for viewing TODO items. However, it does have what it calls Design Notes. These notes are stored in *.mno files that are within _notes folders within the folder of the file that has a design note attached to it. These files and folders are only viewable within Dreamweaver if you have Show Hidden files enabled, which you can do by accessing the Files panel options menu on the upper right by clicking on it, then selecting View -> Show hidden files.
You have to turn them on in the site definition, although by default, a Dreamweaver site will have them turned on. The following steps are for Dreamweaver CS4:
Site -> Manage Sites..., Select the site, click Edit, select the Design notes category, check maintain design notes. Next go to the File View Columns category and make sure that the Notes column is displayed. Click OK then Done.
You can also opt to share these design notes, which means the they will be uploaded when you FTP the files to the remote site, so that others that you work with when they download the file (and assuming they also have Design notes enabled and shared), then they will be able to see that a file has a design note associated with it. Note: These *.mno files are plain text and if you your server may be accessible by others, so be sure not to put anything confidential in them.
In the Files panel, right-click on a file that you want to add a TODO item to, select "Design Notes...". In the interface that opens, you can enter in a free form note for the document. Check the Show when file is opened to cause this interface to open when you open up the file you're applying the design note to.
If you switch to the All Info tab, you can add "keyed" notes, that is a note with a name, and an associated value. This open may be good for TODO items.
When you add a design note to a file and you have the Notes column displayed, you should see an icon in the Notes column for any files that have associated notes for. Double clicking this icon will open up the Design Notes UI. This will be a quick way to determine if you have any TODOs in the files that you can see. Note: you won't see this icon for files within folders that are closed.
If you would like to do some searches or listing of files with design notes associated with them, then you can take a look at the Site Reports Design Notes report. Go to Window -> Results -> Site Reports. In the upper right of this panel, click the green arrow. This brings up the Reports interface. Select the appropriate option under Report on, and then check "Design Notes" under Workflow. Don't bother with the report settings....it's supposed to allow for some search/filtering, but I can't get it not to display all files with notes associated with them, perhaps you'll have better luck. Click the Run button and the Site Reports panel should contain a list of files that have design notes associated with them, as well as the design note info for the file. If you double click the entry, then the file will open.
Well, i use to put a simply comment like this below, directly in the php code:
//TODO: something to do here.
When i need to check my todo list, just search in the site by "//TODO:", and voilá, this is my todo list! It works, it's free and well according with KISS requirements.
Try using doxygen to document your code.
anything marks with a #todo, will be put in a special page when you generate documentaion.
Not ideal but the best i can think of.
(I haven't had much experience with dream weaver - it might have the feature you are looking for IDK)

Adding an extra column in the sharepoint list preview viewstyle

I am using the Out-Of-The-Box preview viewstyle for displaying a list. My requirement is to display and extra column on the left side of the the view, along with the title column. How can I do this?
Sadly, there is no easy, SUPPORTED way to do this. You would have to modify the preview ViewStyle (as defined in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\GLOBAL\XML\VWSTYLES.XML) to display your column. Now this can certainly be done - display CAML is painful but not impossible, but it would modify the preview viewstyle on your entire sharepoint install. See http://mo.notono.us/search?q=viewstyle for more info
Another way to do this MAY be through javascript (I'd use jQuery), though I am not entirely sure HOW you'd accomplish it. I do know Paul over at EndUserSharePoint.com has done some amazing things with client side script...
You may add the extra column by modifying the default view. To do this, you should see on the right-top corner of the list, a view that is "View all".
- Click on that tag and choose from the drop-down menu "Modify current view".
- You will be taken to a form that allows you to choose which columns you want (or don't want) to be displayed on the "default" view.
- (you have also options to sort, filter, etc... this view attending to your needs).
Also, from the drop-down I mentioned, you can create a "new view" instead of modifying the default one, and then, in the list settings, you are allowed to choose which between all the available views, will be the default one.
Hope this helps...

Resources