Hierarchy Query for linked work items in TFS - tfs

I am using TFS 2010.
I have many work items (requirements, test cases...)
The work items are linked. I know how to do a query to see the hierarchy of the work items, but when I want to export them to Excel I have just the option to do a flat report.
How can I export a Hierarchy report of work items?

You can only export a flat list or the Tree of Work Item (for the parent/child relation) to Excel.
If you feel that it is important to have this feature included in a future version, you can use User Voice to add the suggestion. We, as the TFS product team, take these suggestions seriously (and of course the more votes the more likely it will end up in a future version)

Related

Transfer epic to another project

we are currently using VSTS to store all our projects.
At the start, we decided to put every work into the same project, and split them using area when creating epics, pbis etc. For multiple reasons, we have decided to split our work into different project that now represent clients.
Moving the cards is quite painful, because the option given only moves the card to a given sprint, and do not move the parent cards or the child card. For exemple: I'm moving the PBI1 from the project ACME to the project EMCA, both have the same number of sprint, EMCA is a duplicate of ACME in that sense. The problem is when moving PBI1 in ECMA, all the child tasks stayed in ACME.
Is there a better way to transfer all my work to the new project?
Thank you
One way to do it is to connect VSTS to Excel to make the transfer.
Marketplace Add-in VSTS Open in Excel
Once you have done that, you can Save your original Project's Epics, Stories, etc. in Excel format.
Then open your other Project and Insert your Epics, Stories, etc. from that Excel document.
You can use VSTS Sync Migration Tools, this tool support bulk migration of work items with the links:
LinkMigrationContext - Migrates all the work item links, both
between work items and external links.
There are two ways to use these tools:
Install from Chocolatey
Download the latest release from GitHub and unzip.
Find here the documentation and how to migrate the work items with the links.

Is it posible to export the Analysis and Comments from TFS Work Items to Jira

I'm trying to import some work items from TFS2013 to Jira. Jira seems to only support importing from CSV in this scenario.
I've connected Excel up to TFS and run a query to get all the data items for the work items I need, but the Choose columns dialogue in Excel is not giving me the option to export the Analysis and Comments section of the work items.
I'd be happy to simply have all the history items concatenated together into one big text field. I don't really need them to be separate items in Jira's history tough that would be nice if possible.
You're right that the Excel provider is not able to export comments. But you can try https://tfsworkitemsexporter.codeplex.com/ This tool can export comments.
For a full replication JIRA <-> TFS have a look at https://marketplace.atlassian.com/plugins/com.spartez.jira.plugins.bork.tfs4jira/cloud/overview

TFS: Why do Issues appear on the Backlog?

We are using TFS 2015 together with the CMMI process template and I have just found out that Issues do appear on the backlog if they are a child of a Feature or a Requirement work item type. If the Issue is standalone (has not link to one of the two mentioned work item types) it is not visible on the backlog.
I guess that someone has made some hacks here in order to make this possible. Originally, only Epics, Features, Requirements, Tasks, and Bugs should appear on the backlog.
I have checked the Issue work item type definition as well as the processconfiguration.xml and the categories.xml which look quite ok from my point of view.
Are there any another places where one could define which work item types should be visible on the backlog?
Thanks a lot for giving support.
To add a WIT on backlog, the three files below need to updated:
WIT Definition
Categories Definition
ProcessConfiguration Definition
You can check the required changes on this link: Add work item types to backlogs and boards to see if these changes had been applied on your project. If yes, revert these changes, then the Issue should disappear from the backlog.
You should not use the "child" link to associate with Issues.
The Parent/Child link is used for the backlog and I would think that the Issues are appearing because of this.
Try changing the Parent/Child link to 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.

Get list of bugs linked to workItems in TFS

What would be the query to get list of all bugs linked to particular workitem in TFS 2012?
or any other way to get list?
The process template is MSF for Agile Software Development v6.0.
Thanks!
Here is an example for looking for work items that have a bug linked to them:
Make sure you change the query type to work Items and Direct Links. You can filter down either the main query, or for the linked work items.

Resources