index > Team Foundation Server - Work Item Tracking > Creating a Custom query programmatically and displaying results i...

Creating a Custom query programmatically and displaying results i...


I want to create a menu item in Visual Studio that will bring up a dialog that will allow users to enter certain parameters, like keywords etc. This should then return a grid/details view in the Visual Studio window. Exactly like running a query from the Team Explorer.

There is an item in the Team menu called "Go to work item..." where you enter the ID. This is basically the same functionality that I am looking for.

I can create a stand-alone app that I can run and query the TFS, and display the results that I want. I just want it as a plug-in to VS.

I have been searching for samples with no luck so far.

Thanks,

Luis

Lucho1970
You can create an addin or VSIP package to accomplish this. Check out CreateQuery method on DocumentService in http://blogs.msdn.com/narend/articles/673183.aspx. For brief overview on document service and samples, you can check http://blogs.msdn.com/narend/archive/2006/07/07/AccessingWitFromAddin.aspx . Using createquery, you can create query documents using a WIQL statement that you can generate from user input. You can then show that document in VS shell.


http://blogs.msdn.com/narend
Naren Datha - MSFT
reply 2

You can use google to search for other answers

 

More Articles

Add multiple files as file attachment to a scenario work item
Publishing errors when updating frozen fields from MS Excel
Query Date-Time granularity
TF54000: Cannot update data because the server clock may have bee...
Migrating work items and setting the "CreatedDate"
Excel Plug-in for Office 12
Customize the history tab to give more information about the WI
Adding / Modifying Work Item Fields
More on Linking
Actions and fields of work items
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

how to increase attachment upload limits…
Excel Plug-in for Office 12
How can I restrict permissions to change…
Removing a work item
Add multiple files as file attachment to…
Can I create new link types?
Can users add and view work items from t…
How to create AreaPath dropdown in winfo…
Old Work Items missing from query
How to Import/Export WorkItems in TFS-RTM
TFS Work Item WebPart Authentication Fai…
Can't browse work items
New work item ticker tool?
TF80071 connecting MPP to Team project
Publishing errors when updating frozen f…

Hot Articles

How to rename Work Item Type?
MSProject Undo and Redo disabled
Locating Work Item Attributes In TFS Dat…
How to change my work items?
Accessing work itens via web (license qu…
Work Item to Work Item associations
File Attachment Best Practice
Default TFS event subscriptions & ce…
Auto-Complete of Area and Iteration
Make AreaPath field required.
Default is fixed, once set, even if the …
has anybody created a conversion tool th…
Exception on import: It was String, but …
How do you suppress work item creation o…
CMMI delete work items

Recommend Articles

Auto-Complete of Area and Iteration
Saving attachments
Customize Query Variables
Removing a work item
Custom Work Item Types and Sort Order
How to delete unwanted Work Items and se…
Master/sub-project support across TFS pr…
Localized web server instance not launch…
ActivatedDate field definition problem
Team Projects sharing same Source Control
Custom work item editor
Open Work Item attachment problem
Attach a note to a work item
Work Item Schema
WHENCHANGED error