Tuesday, 2 July 2013

Some tips on adding other levels above the Feature

I know, I know – we have it on the MSDN. But I wanted to take the other route, which is not using witadmin and using the old Visual Studio 2012 with its Power Tools and limiting the raw XML editing to the pure essential part. It went pretty well I have to say. Let’s see…

First of all, download the Process Template you want to add levels above the Feature one (Themes anyone? :)).

When you’re going to open it with Visual Studio, you are going to see that both the Agile and Common Process Settings are empty.

image

This is because Microsoft changed the structure of the Process Settings, merging everything into a ProcessConfiguration.xml file. No worries anyway, we can fix it.

So, copy and paste the Feature.xml work item, renaming it to Themes.xml, and fixing the WORKITEMTYPE name:

image

Import it into the Process Template:

image

Now you can create a new Category using the IDE, and adding the aforementioned Theme. Use Custom.ThemeCategory as a reference name or whatever you may feel right for your custom category:

image

Now open the Theme.xml file. You have to fix the Implementation Hierarchy. This is very important in order to let you select Features as children.

image

Now, delete whatever it is not ProcessConfiguration.xml into the \WorkItem Tracking\Process folder, and fix the WorkItems.xml into \WorkItem Tracking:

image

Now, let’s add a node to the PortfolioBacklogs section of the ProcessConfiguration.xml.

image

It is enough to copy and paste the Feature’s one, but here it is very important to add parent=”Custom.ThemeCategory” to the existing Feature, in order to keep the linear hierarchy and avoid a “The following element contains an error: PortfolioBacklogs. TF401096: This element defines the hierarchy relationship between portfolio backlogs and must define a linear hierarchy from bottom to top. The specified hierarchy is invalid.” error.

image

Moreover, add a node to the WorkItemColor section, but remember to follow the existing colour pattern, otherwise the Process Template won’t upload. I used the same colour, but of course you can use others. Just keep in mind the pattern.

image

That’s all! Now you can upload your Process Template and you’re going to get another level above Feature with all the associated tools (board, etc.)

No comments:

Post a Comment