How to copy work item id in TFS? - tfs

I constantly need to copy only the id of the work item, but in VS2010, I could not find an easy way to do that. The nearest thing I find is that I can select an item in the query result grid and press Ctrl + C to copy info and then extract only work item id. Any other easier way? An extension that does just that would be lovely.

If you have the work item open, you should be able to get it by making a macro which copies DTE.ActiveDocument.Name to the clipboard.

On the query, right click on the work item, Copy Work Item shortcut. You will be able to copy and paste the work item id and the Title.

Related

Devexpress : Express Printing System - Print contents of 2 cxgrid's

Actually, I never tried this but it's supposed to work judging from some comments I've read. I have two grids: One displays Hotel guests and the other one their former stays (Date from- date to, etc..). Now I would like to be able to print both contents as a single report.How do I add the linked contents of the second grid to my dxComponentPrinter1Link1 ??
In the IDE open your form.
Right click and choose ReportLinks on the TdxComponentPrinter
object.
In the links editor window, instead of clicking the Add button, click the dropdown arrow next to the Add button. Choose Add Composition.
This creates a TdxCompositionReportLink object. There is an Items property which will hold all of the report links you want in the composite report. This will print out as a single report. I can't promise both reports will be on the same page though. I've never figured out how to do that.

Google Fusion Tables API - How to copy and rename a table?

I have an existing fusion table with a certain format and I have a number of charts added to it.
Idea is to make a copy, rename it and import additional rows into it.
When I do the copy, there doesn't seem a way to specify what the name of new table should be.
So I am assuming there must be a way to rename the table (since it is called Copy of ... by default).
What is the right way to rename?
Thanks,
Vivek
Go to File->About this table. A window will appear, on the bottom of this window you'll find a link "Edit Table information", that's where you may set different properties of the table, e.g. the name.
Click on the title and change it in the dialog that pops up.

Save Column Option settings in TFS?

Is there any way to save your Column Option settings so that you can re-use them or apply them to other queries in TFS?
I've searched and it doesn't appear there is a way to do this, but maybe I am missing something.
Yes.. Follow below steps
Create a Query under queries pane. Make sure it works & Results are displayed
Now customise the view by clicking on the 'Column Options' & remove or add any column by DOUBLE CLICKING on it option followed by OK to save for current view
From the Result screen, notice 'SAVE QUERY' option. This should save your current view as it is to the Query
Voila.. Your view is saved as it is in the Query

Tree List Ex Editor - change adding of selected item to the top of the list instead of bottom

One of our clients has a website that uses a lot of TreeListEx type field. By default, when an item is selected and moved over to the right side in the TreeListEx editor, the selected element is added to the bottom of the list on the right. The editors for this client would like to have this changed so that the element is added to the top of the list on the right.
For this I tried to look in the Shell folder at Treeview.js and Treelistexeditor.js. But I could not figure where to make the change.
In the TreeListExEditor.js file, look at the scSetMastersType.prototype.moveRight() function. In a loop it calls selected.appendChild(opt) which you may want to change to prepend the option. This would require a bit of JavaScript hackery on your part.
Perhaps start with a typeof(selected) to see what it is. I assume an array. If so, maybe do this:
Reverse the original array
Append your new item at the end of the revered data
Reverse it again to back to normal. Now your new option is at the beginning
Again, because this is JavaScript, there are plenty approaches you can take.

How can I add text to a work item

We have a few bugs and change requests which have a complicated iteration path. This results in people coming over the team to ask 'Where do we raise items' a lot.
As you can't set a default value for the iteration path in TFS 2010 we think the best solution would be to add a string of text under the field which we can manually update every 7 weeks with the correct area to raise items in.
However TFS doesn't seem to allow just a line of text on its work items as a control. Is there a way to add a line of display text i.e. Not a field you edit, but just to inform those writing the items?
Please note that it needs to be visible at all times, using the tooltip 'help text' field on a control is not enough in this case.
You can use the LabelControl for this purpose.
You can not have a default in the work item for the iteration path, but what you can do is making use or the template url in web access or the work item templates in the power tools to create a work item that is prepopulated with values.
What about a custom field with a display control in read-only? You can give a default value to the field and the "read-only" control prevent other to change it.

Resources