TFS: issues batch update - tfs

How can I change state for dozen issues in "few clicks" in TFS? I know it is possible to export them all into Excel, do batch operation and "import" them back... (or something like this, didn't try actually).
But I am wondering if there is any quicker way to do that? For example, I would like to:
- launch some query;
- select few issues (for example, that have same 'State'='Active');
Here I would like to see some kind of dialog that display only those issue properties, that are the same. After that:
- change some field value (for example, state from 'Active' to 'Resolved');
- click 'Save'
And have each selected issue updated.
Is this possible with usual Team Explorer? I know such operation is in Telerik TFS client, but I don't like it: it doesn't allow to query issues from different projects in one time. Probably there is a simple add-on for Visual Studio that do that?
Thanks a lot!

You can use web access (the web-based front end for TFS). It supports batch updating of work items from its query results view.
Exporting to Excel is actually reasonably quick and easy. Here are the general steps (reciting from memory so may not be 100% complete):
Right click on your query in Team Explorer and select the open in Excel command (you can also do this from the query results tool window).
Update the work items in Excel as appropriate.
In Excel, select the "Team" tab on the ribbon and click Publish.
That's it!

You could use the command line: See here for an example:
http://blogs.msdn.com/b/buckh/archive/2006/09/07/tfs-power-toys-tfpt.aspx

Related

How do I convert my flat list to a tree list when trying to bulk import from Excel 2013 to TFS?

I've got a lot of product backlog items that I want to load into TFS. We've already got most of these defined in an Excel spreadsheet, so I thought that bulk importing from Excel to TFS as described here would be the best way to go.
If I just wanted a flat list, I'd be fine. Excel 2013 is a bit different than the screenshots in that article, but it worked pretty much the same. I went to the TEAM menu option and selected a new list, and then built the list from my selected query. I got a screen with my existing work items that looked like this:
According to the article I linked above, if I want to be able to add sub-tasks I need to convert the flat list to a tree list. I'm supposed to do this "by adding a tree level." However, here's the problem with that:
I've tried clicking in various cells in case something needs to be selected to "enable" this option, but my blind clicking has yielded no luck. Am I just terrible at following instructions, or does Excel 2013 have some quirk that I need to work around?
What do I need to do to enable this so that I can bulk import sub-tasks?
The Work Item Query you select needs to be a tree-based query. I'm guessing the WI Query you are selecting is a flat-list, that's why those features aren't lighting up in Excel.
To build off of Dylan Smith's answer, here's how to get your Work Item Query into a tree-based form (so you can add a tree level). This works with Team Foundation Server 2012 and higher.
Here is where to go within TFS 2012. Using the web interface, you should navigate to the query you want to load into Excel. From there, go to the 'Editor' section of the query, then there you can change the type of query to be "Tree of Work Items".
With that done, you can now load the list into Excel (using the Team tab, as described elsewhere). You can then Add Tree Levels, Add Child, etc.

TFS 2010 Rename items in ALLOWEDVALUES and update all existing workitems

I need to change one of the item in ALLOWEDVALUES, and preferably to update all existing workitem and possibly all history as well, is there any built in TFS 2010 command or function to do this? If not, can I update the table directly, after applying the new ALLOWEDVALUES?
You should create a query and open it in excel. This will allow you to easily bulk edit all of the old values to the new ones. If you create a query with the right columns you can right click on it in visual studio and open in excel. The other way round you can open excel and use the Team tab to open the query. The you can update all if the work items and save in one go.
if you plan on keeping some of the old values around you should also add so that folks can still save without changing the value.

How to get the list of all "Change Sets" of a user in TFS?

I just want to get the list of all change sets of a user in TFS. I want only the id of the change set, and a link to all items which are being checked in as part of that change set.
How can I do that?
Besides option presented by Richard, you can also do that from within VS using the "Changesets" option:
It's also possible to do it via the API. I can provide a short snippet, if you're interested.
For Visual Studio 2013
Open Source Control Explorer
Right click on the repository you want to search
Select Find => Find Changesets
The "Find Changesets" window will open where you can filter by username.
tf hist ‹item› /user:name will filter the history by user, so this could be used to get a complete set of changes for a user, from which the changeset numbers can be extracted.
I found a round about way.
You can open a TFS task, and link a Changeset to the task. There you can browse for a changeset using search parameters.
I don't know why this is the only place where this functionality is available, but at least it's there.

How to export from Mingle to TFS 2010 (Scrum for Team System)

We've currently got all our User Stories and Tasks in Thoughtworks Mingle, but what to move them into TFS 2010 which we're be using with Scrum For Team System.
Has anyone had any experience doing this? If so, how did you go about doing it? Were there any gotchas along the way?
Thanks,
John
I'm not familiar with Mingle, so I'm not sure what kind of access you have to the data. I can envision two scenarios:
*1. API Access to Mingle data
If this is the case, it's going to be very simple to create the new work items programmatically. We do this today between our help-desk system and TFS. It's just a matter of creating a work item, setting the fields, and calling "Save()".
*2. Export access to Mingle data
This is probably an easier solution. Export to Excel (via CSV or custom conversion), and create a TFS list in Excel using the plug-in. Reorder your columns as necessary in the exported data, and copy and paste from the exported data to the TFS data. Click on "Publish" and you're done.
Between the two, I'd recommend the API approach if this is going to be ongoing. If it's going to be a one-time thing, the Excel approach works fine.

TFS search dialog for items

Has the team explorer a search dialog for TFS items without to create a query?
Are there any third party tools for searching TFS items with full-text searches?
Yes, there is a plugin called Search Work Items.
The Search Work Items plugin doesn't work with multiple words across fields, so you cant do things like "system crash jrodgers", "system crash State:active", "(system or fatal) crash -closed".
If you want true full text search, you can use this: http://teamsearchapp.com
Disclaimer: I built the product at that address, so take my advice for what it is worth...
Yes, http://www.teamcompanion.com a 3rd Party TFS tool in Outlook.
You get a nice UI to create queries.

Resources