TFS 2010 Rename items in ALLOWEDVALUES and update all existing workitems - tfs

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.

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.

Adding Revisions to TFS Work Item using c# code

I'm copying bug items from one tfs project to another.
I'm using the copy method to create the bug in the new project, but the bug is not copied with the history details (revisions).
I need the history field to see all changes that were made and also free text that we're adding when changing States.
I tried going over each Revision item but there is no way to add the revision item to the new work item, and i can't find a way to retrieve the data I need from the Revision object.
Does anyone know how to get the information?
There is a project on Visual Studio Gallery: http://visualstudiogallery.msdn.microsoft.com/cd89c5d3-4816-4f22-b04e-a397cc606be6
I have not tried this, but maybe it can be helpful.
You can use the TFS Integration Platform to move or copy projects (including work items) from one TFS project to another, or one server to another. I have not tried moving just work items, though.

How to add fields to work items in existing team project

I have team project in TFS. There are already some work items in the project. I need to add new fields to work item type. How can I do it?
Export the work item type, add the fields, and re-import it. As long as you do not delete any fields, this will not affect existing work items.
You may have to bulk-edit existing work items to put in valid values for the newly-added fields.
The best way to do this is by installing the TFS Power Tools, which will add the Process Editor to your Team menu.

TFS: issues batch update

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

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.

Resources