0
votes

I am using Visual Studio 2012, TFS 2012, and I want to do this for PBI (Product Backlog Items)

I would like to add a "button" or something of the sort to help me create Tasks for my PBIs. (This is something I have been requested to do).

So as I am Viewing a PBI or a List of PBIs I could have a button that popups a Window inside Visual Studio with some options which will trigger the creation of different tasks and such. Is this possible?

Or should I create a separate program that will allow me view the WorkItems and implement the functionality there (for example with C#/WPF)

2
Which TFS/Visual Studio versions are you using? Which process template? Exactly which work item? And, finally, yes, you can customize work items, even the work item forms, and can add custom controls.John Saunders
@JohnSaunders, I think we are using Scrum (I don't know how to check that yet), also, the only way is modifying the actual Template? Isn't there a way to do it at Visual Studio Level? If I modify the WorkItem template, that change is in the TFS server, no?Dzyann
It sounds like you have been given the job of process template customization. You should read up on "Extending Team Foundation".John Saunders
@JohnSaunders, so just to be sure, you are saying that if I don't want to modify the WorkItem Template I need to use the "Extending Team Foundation"? Or "Extending Team Foundation" implies modifying the WorkItem Template?Dzyann
You still haven't said which version of TFS you're using.John Saunders

2 Answers

1
votes

You should look at following links. Looks like you are looking to create/update work items in bulk. You can easily import your pbi work items to excel and add/update in bulk or also use work item templates for that.

If that doesn't work then you can write code using TFS API to create work items and do other things as well. Using that you can have your own form and add custom steps and then call Api to create the work items.

TFS API to create work items: https://social.technet.microsoft.com/wiki/contents/articles/3280.tfs-2010-api-create-workitems-bugs.aspx

Use work item templates to pre-populate fields: http://msdn.microsoft.com/en-us/library/ff407162.aspx

Bulk add or modify work items with Excel: http://msdn.microsoft.com/en-us/library/dd286627.aspx

Bulk modify work items: http://msdn.microsoft.com/en-us/library/hh409280.aspx

0
votes

This already exists out of the box. When viewing a PBI go to the Tasks tab and click New. It will create a new Task that is automatically linked back to the PBI. It will also set the Iteration and Area to match the Parent PBI.

enter image description here