{"id":9715,"date":"2013-02-12T14:28:00","date_gmt":"2013-02-12T14:28:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2013\/02\/12\/add-bugs-to-the-task-board-or-backlog-pages\/"},"modified":"2019-02-14T17:54:44","modified_gmt":"2019-02-15T01:54:44","slug":"add-bugs-to-the-task-board-or-backlog-pages-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/add-bugs-to-the-task-board-or-backlog-pages-2\/","title":{"rendered":"Add bugs to the task board or backlog pages"},"content":{"rendered":"<p><span style=\"line-height: 150%;font-size: 13pt\">Some teams like to track bugs as tasks and other teams track them as backlog items, such as user stories or requirements. If you&rsquo;re using a Scrum project, bugs are already in your backlog. However, if your team project was created using the Agile, CMMI, or other process template, bugs don&#8217;t appear on the task board or the backlog pages. <\/span><\/p>\n<p><span style=\"line-height: 150%;font-size: 13pt\"><span style=\"line-height: 150%;font-size: 13pt\"><span style=\"color: #ff0000\"><span style=\"color: #000000\">This post shows you how to add bugs to either the task board or the product backlog.<\/span><\/span><\/span><\/span><\/p>\n<p style=\"padding-left: 30px;padding-right: 30px\"><span style=\"line-height: 150%;font-size: 13pt\"><span style=\"color: #ff0000\"><strong><span style=\"color: #000000\">You can add bugs or other work item types&nbsp;to appear in either the task board or the product backlog,<\/span> but not both. <\/strong><\/span><\/span><\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p style=\"padding-left: 30px\"><span style=\"color: #0000ff\"><strong>NOTE<\/strong><\/span>: With the <strong>witadmin<\/strong> command line tool, you import and export definition files as shown in this post. You can also use the Process Editor GUI tool, available with the download of <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=248625\" target=\"_blank\">TFS Power Tools<\/a>, or <a href=\"http:\/\/teamprojectmanager.codeplex.com\/\">TFS Team Project Manager<\/a>, a community resource project available on codeplex.<\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p>The steps provided in this post describe how to make changes to a team project that is based on either the Agile or CMMI process templates that TFS provides. The state model for the work item types that you add must align to the metastate mappings specified within the CommonConfiguration file. If they do not, additional definitions must be made as described <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/vstudio\/hh543813.aspx\">here<\/a>.<\/p>\n<h2>Track bugs as tasks<\/h2>\n<p>To track bugs as tasks, you add required fields to the bug work item type, and you add the bug work item type to the Task Category.&nbsp; Here&rsquo;s how you do that for a team project based on the MSF for Agile process template.<\/p>\n<h2>Add required fields to the bug work item type<\/h2>\n<ol>\n<li>If you don&#8217;t have admin permissions for your team project, get them.<\/li>\n<li>Open a Command Prompt window where either Visual Studio or Team Explorer is installed and enter:<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">cd %programfiles%Microsoft Visual Studio 11.0Common7IDE<\/span><\/p>\n<p style=\"padding-left: 40px\">On a 64-bit edition of Windows, replace <span style=\"font-family: courier new,courier\">%programfiles%<\/span> with <span style=\"font-family: courier new,courier\">%programfiles(x86)%<\/span>. You can download <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=262121\">Team Explorer<\/a> for free.<\/p>\n<ol>\n<li value=\"3\">Export the bug work item type definition.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">witadmin exportwitd \/collection:&#8221;http:\/\/<em>MyServer<\/em>:8080\/tfs\/DefaultCollection&#8221; <br \/>\/p:<em>MyProject <\/em>\/n:bug \/f:<em>Directory<\/em>\/bug.xml<\/span><\/p>\n<ol>\n<li value=\"4\">Add the <strong>Activity<\/strong> and <strong>Stack Rank<\/strong> fields. If you don&rsquo;t, the configuration won&rsquo;t be valid. Optionally, add the scheduling fields that your team uses. The <span style=\"font-family: courier new,courier\">Microsoft.VSTS.Scheduling.XXX<\/span> fields are used in out-of-the-box reports, but not by the Agile planning tools. If your team doesn&#8217;t use these fields, then you don&#8217;t have to add them.&nbsp;<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">&lt;FIELDS&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">. . . <\/span><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;FIELD name=&#8221;Activity&#8221; refname=&#8221;Microsoft.VSTS.Common.Activity&#8221; type=&#8221;String&#8221; reportable=&#8221;dimension&#8221;&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HELPTEXT&gt;Type of work involved&lt;\/HELPTEXT&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SUGGESTEDVALUES&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LISTITEM value=&#8221;Development&#8221;\/&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LISTITEM value=&#8221;Testing&#8221;\/&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LISTITEM value=&#8221;Requirements&#8221;\/&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LISTITEM value=&#8221;Design&#8221;\/&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LISTITEM value=&#8221;Deployment&#8221;\/&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LISTITEM value=&#8221;Documentation&#8221;\/&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/SUGGESTEDVALUES&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;\/FIELD&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;FIELD name=&#8221;Stack Rank&#8221; refname=&#8221;Microsoft.VSTS.Common.StackRank&#8221; type=&#8221;Double&#8221; reportable=&#8221;dimension&#8221;&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HELPTEXT&gt;Work first on items with lower-valued stack rank. Set in triage.&lt;\/HELPTEXT&gt;<br \/>&nbsp;&nbsp;&nbsp;&lt;\/FIELD&gt;<\/span><\/strong><\/p>\n<p style=\"padding-left: 40px\"><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&lt;FIELD name=&#8221;Remaining Work&#8221; refname=&#8221;Microsoft.VSTS.Scheduling.RemainingWork&#8221; type=&#8221;Double&#8221; reportable=&#8221;measure&#8221; formula=&#8221;sum&#8221;&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HELPTEXT&gt;An estimate of the number of units of work remaining to complete this task&lt;\/HELPTEXT&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;\/FIELD&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;FIELD name=&#8221;Original Estimate&#8221; refname=&#8221;Microsoft.VSTS.Scheduling.OriginalEstimate&#8221; type=&#8221;Double&#8221; reportable=&#8221;measure&#8221; formula=&#8221;sum&#8221;&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HELPTEXT&gt;Initial value for Remaining Work &#8211; set once, when work begins&lt;\/HELPTEXT&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;\/FIELD&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;FIELD name=&#8221;Completed Work&#8221; refname=&#8221;Microsoft.VSTS.Scheduling.CompletedWork&#8221; type=&#8221;Double&#8221; reportable=&#8221;measure&#8221; formula=&#8221;sum&#8221;&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HELPTEXT&gt;The number of units of work that have been spent on this task&lt;\/HELPTEXT&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;\/FIELD&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;FIELD name=&#8221;Start Date&#8221; refname=&#8221;Microsoft.VSTS.Scheduling.StartDate&#8221; type=&#8221;DateTime&#8221; reportable=&#8221;dimension&#8221;&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HELPTEXT&gt;The date to start the task&lt;\/HELPTEXT&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;\/FIELD&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;FIELD name=&#8221;Finish Date&#8221; refname=&#8221;Microsoft.VSTS.Scheduling.FinishDate&#8221; type=&#8221;DateTime&#8221; reportable=&#8221;dimension&#8221;&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HELPTEXT&gt;The date to finish the task&lt;\/HELPTEXT&gt;<\/span><\/strong><\/span><br \/><span style=\"color: #808080\"><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;\/FIELD&gt;<\/span><\/strong><\/span><br \/><span style=\"font-family: courier new,courier\">. . . <\/span><br \/><span style=\"font-family: courier new,courier\">&lt;\/FIELDS&gt;<\/span><\/p>\n<p style=\"padding-left: 30px\">You can also manage the items in the Activity field using a <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/vstudio\/ms194977.aspx\">global list<\/a>.<br \/><span style=\"font-family: arial,helvetica,sans-serif\">(For a team project based on MSF for CMMI, you would add the Discipline and Stack Rank fields.)<\/span><\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p style=\"padding-left: 30px\"><span style=\"color: #0000ff\"><strong>NOTE<\/strong><\/span>: The backlog and board pages use the <strong>Stack Rank<\/strong> field to manage the sort order of work items. This field must match the field assigned to the <strong>Order<\/strong> type in the CommonConfiguration definition file. To download this file, use <span style=\"font-family: courier new,courier\"><strong>witadmin exportcommonprocessconfig<\/strong><\/span>.<\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<ol>\n<li value=\"5\">Add fields to the work item form.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">&lt;FORM&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">. . . <\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;Group Label=&#8221;Status&#8221;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Column PercentWidth=&#8221;33&#8243;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control Type=&#8221;FieldControl&#8221; FieldName=&#8221;System.AssignedTo&#8221; Label=&#8221;Assi&amp;amp;gned to:&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control Type=&#8221;FieldControl&#8221; FieldName=&#8221;Microsoft.VSTS.Common.Rank&#8221; Label=&#8221;Ran&amp;amp;k:&#8221; LabelPosition=&#8221;Left&#8221; NumberFormat=&#8221;WholeNumbers&#8221; MaxLength=&#8221;10&#8243; \/&gt;<\/span><\/strong><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control FieldName=&#8221;Microsoft.VSTS.Common.Activity&#8221; Type=&#8221;FieldControl&#8221; Label=&#8221;Activity&#8221; LabelPosition=&#8221;Left&#8221; EmptyText=&#8221;&amp;lt;None&amp;gt;&#8221; \/&gt;<\/span><\/strong><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Column&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Column PercentWidth=&#8221;33&#8243;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control Type=&#8221;FieldControl&#8221; FieldName=&#8221;System.State&#8221; Label=&#8221;&amp;amp;State:&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control Type=&#8221;FieldControl&#8221; FieldName=&#8221;System.Reason&#8221; Label=&#8221;&amp;amp;Reason:&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Column&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Column PercentWidth=&#8221;33&#8243;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control Type=&#8221;FieldControl&#8221; FieldName=&#8221;Microsoft.VSTS.Common.Triage&#8221; Label=&#8221;Triag&amp;amp;e:&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control Type=&#8221;FieldControl&#8221; FieldName=&#8221;Microsoft.VSTS.Common.Priority&#8221; Label=&#8221;Priorit&amp;amp;y:&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><br \/><strong><span style=\"color: #888888;font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control FieldName=&#8221;Microsoft.VSTS.Scheduling.OriginalEstimate&#8221; Type=&#8221;FieldControl&#8221; Label=&#8221;Original Estimate&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><\/strong><br \/><strong><span style=\"color: #888888;font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control FieldName=&#8221;Microsoft.VSTS.Scheduling.RemainingWork&#8221; Type=&#8221;FieldControl&#8221; Label=&#8221;Remaining&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><\/strong><br \/><strong><span style=\"color: #888888;font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control FieldName=&#8221;Microsoft.VSTS.Scheduling.CompletedWork&#8221; Type=&#8221;FieldControl&#8221; Label=&#8221;Completed&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><\/strong><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Column&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;\/Group&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">. . . <\/span><br \/><span style=\"font-family: courier new,courier\">&lt;\/FORM&gt;<\/span><\/p>\n<ol>\n<li value=\"6\">Import the updated bug definition.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">witadmin importwitd \/collection:&#8221;http:\/\/<em>MyServer<\/em>:8080\/tfs\/DefaultCollection&#8221; <br \/>\/p:<em>MyProject<\/em> \/f:<em>Directory<\/em>\/bug.xml<\/span><\/p>\n<h2>Add the bug work item type to the Task Category<\/h2>\n<ol>\n<li>Export the categories definition.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">witadmin exportcategories \/collection:&#8221;http:\/\/<em>MyServer<\/em>:8080\/tfs\/DefaultCollection&#8221; <br \/>\/p:<em>MyProject<\/em> \/f:<em>Directory<\/em>\/categories.xml<\/span><\/p>\n<ol>\n<li value=\"2\">Add bug to the Task Category.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">&lt;CATEGORY refname=&#8221;Microsoft.TaskCategory&#8221; name=&#8221;Task Category&#8221;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp; &lt;DEFAULTWORKITEMTYPE name=&#8221;Task&#8221; \/&gt;<\/span><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp; &lt;WORKITEMTYPE name=&#8221;Bug&#8221; \/&gt;<\/span><\/strong><br \/><span style=\"font-family: courier new,courier\">&lt;\/CATEGORY&gt;<\/span><\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p style=\"padding-left: 30px\"><span style=\"color: #0000ff\"><strong>NOTE<\/strong><\/span>: It&#8217;s OK for the bug work item type to belong to two categories&mdash;the Bug Category and the Task Category.&nbsp; It just can&#8217;t belong to both the Task Category and the Requirements Category.<\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<ol>\n<li value=\"3\">Import the categories file.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">witadmin importcategories \/collection:&#8221;http:\/\/<em>MyServer<\/em>:8080\/tfs\/DefaultCollection&#8221; <br \/>\/p:<em>MyProject<\/em> \/f:<em>Directory<\/em>\/categories.xml<\/span><\/p>\n<h2>Confirm that you can add bugs to the task board<\/h2>\n<ol>\n<li>Open the task board page, or refresh the page if it is already open.<\/li>\n<li>You should be able to select either task or bug as a linked work item to a user story.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/3264.add_bug_to_task_board.jpg\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/02\/3264.add_bug_to_task_board.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<ol>\n<li value=\"3\">To add existing bugs to the task board, open a user story. In this example, the user story is titled Bug debt. From the <strong>ALL LINKS<\/strong> tab, choose the bugs to include in the sprint.&nbsp;<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/7367.add_bug_to_ta_user_story.jpg\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/02\/7367.add_bug_to_ta_user_story.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<p style=\"padding-left: 40px\">You might have to refresh the task board for the bugs to show up.<\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p style=\"padding-left: 40px\"><span style=\"color: #0000ff\"><strong>NOTE<\/strong><\/span>: You can&#8217;t add bugs through the <strong>Implementation<\/strong> tab because that tab is restricted to user stories and&nbsp;tasks only. To support adding bugs through the <strong>Implementation<\/strong> tab, modify the <strong><span style=\"font-family: courier new,courier\">FORM<\/span><\/strong> section of the user story work item type to include the filter for bugs. For example, include the <span style=\"font-family: courier new,courier\"><strong>&lt;Filter WorkItemType=&#8221;Bug&#8221; \/&gt;<\/strong><\/span> syntax as highlighted below.&nbsp;<\/p>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">&nbsp; &lt;Tab Label=&#8221;Implementation&#8221;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control Type=&#8221;LinksControl&#8221; Name=&#8221;Hierarchy&#8221;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LinksControlOptions&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;WorkItemLinkFilters FilterType=&#8221;include&#8221;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Filter LinkType=&#8221;System.LinkTypes.Hierarchy&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/WorkItemLinkFilters&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;WorkItemTypeFilters FilterType=&#8221;include&#8221;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Filter WorkItemType=&#8221;User Story&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Filter WorkItemType=&#8221;Task&#8221; \/&gt;<br \/><\/span><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Filter WorkItemType=&#8221;Bug&#8221; \/&gt;<\/span><\/strong><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/WorkItemTypeFilters&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ExternalLinkFilters FilterType=&#8221;excludeAll&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LinkColumns&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LinkColumn RefName=&#8221;System.ID&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LinkColumn RefName=&#8221;System.WorkItemType&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LinkColumn RefName=&#8221;System.Title&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LinkColumn RefName=&#8221;System.AssignedTo&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LinkColumn RefName=&#8221;System.State&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;LinkColumn LinkAttribute=&#8221;System.Links.Comment&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/LinkColumns&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/LinksControlOptions&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Control&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/Tab&gt;<\/span><\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p style=\"padding-left: 40px\">&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Track bugs as backlog items<\/h2>\n<p>Work item types that you add to the Requirements Category show up on the backlog pages. For the configuration to be valid, you must first add the estimate and backlog sort order fields to the bug work item type.<\/p>\n<h2>Add required fields to the bug work item type<\/h2>\n<ol>\n<li>Export the bug work item type definition.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">witadmin exportwitd \/collection:&#8221;http:\/\/<em>MyServer<\/em>:8080\/tfs\/DefaultCollection&#8221; <br \/>\/p:<em>MyProject<\/em> \/n:bug \/f:<em>Directory<\/em>\/bug.xml<\/span><\/p>\n<ol>\n<li value=\"2\">Add the estimate and backlog sort order fields. For Agile, these correspond to <strong>Story Points<\/strong> and <strong>Stack Rank<\/strong>.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">&lt;FIELDS&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">. . . <\/span><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp; &lt;FIELD name=&#8221;Story Points&#8221; refname=&#8221;Microsoft.VSTS.Scheduling.StoryPoints&#8221; type=&#8221;Double&#8221; reportable=&#8221;measure&#8221; formula=&#8221;sum&#8221;&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HELPTEXT&gt;The size of work estimated for implementing the bug.&lt;\/HELPTEXT&gt;<br \/>&nbsp;&nbsp; &lt;\/FIELD&gt;<br \/>&nbsp;&nbsp; &lt;FIELD name=&#8221;Stack Rank&#8221; refname=&#8221;Microsoft.VSTS.Common.StackRank&#8221; type=&#8221;Double&#8221; reportable=&#8221;dimension&#8221;&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HELPTEXT&gt;Work first on items with lower-valued stack rank. Set in triage.&lt;\/HELPTEXT&gt;<br \/>&nbsp;&nbsp; &lt;\/FIELD&gt;<\/span><\/strong><\/p>\n<p style=\"padding-left: 40px\"><strong><span style=\"font-family: Courier New\">&nbsp;<\/span><\/strong> <span style=\"font-family: courier new,courier\">. . . <\/span><br \/><span style=\"font-family: courier new,courier\">&lt;\/FIELDS&gt;<\/span><\/p>\n<p style=\"padding-left: 40px\">For a team project based on MSF for CMMI, you would add the <strong>Size <\/strong>and <strong>Stack Rank<\/strong> fields.<\/p>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p style=\"padding-left: 30px\"><span style=\"color: #0000ff\"><strong>NOTE<\/strong><\/span>: The backlog and board pages use the <strong>Stack Rank<\/strong> field to manage the sort order of work items. This field must match the field assigned to the <strong>Order<\/strong> type in the CommonConfiguration definition file. To download this file, use <span style=\"font-family: courier new,courier\"><strong>witadmin exportcommonprocessconfig<\/strong><\/span>.<\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<ol>\n<li value=\"3\">Add the Story Points and Stack Rank&nbsp;fields to the work item form.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">&lt;FORM&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">. . .&nbsp;<\/span><\/p>\n<p style=\"padding-left: 90px\"><span style=\"font-family: courier new,courier\">&lt;Column PercentWidth=&#8221;33&#8243;&gt;<\/span><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control FieldName=&#8221;Microsoft.VSTS.Scheduling.StoryPoints&#8221; Type=&#8221;FieldControl&#8221; Label=&#8221;Story Points&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><\/strong><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control Type=&#8221;FieldControl&#8221; FieldName=&#8221;Microsoft.VSTS.Common.Triage&#8221; Label=&#8221;Triag&amp;amp;e:&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Control Type=&#8221;FieldControl&#8221; FieldName=&#8221;Microsoft.VSTS.Common.Priority&#8221; Label=&#8221;Priorit&amp;amp;y:&#8221; LabelPosition=&#8221;Left&#8221; \/&gt;<\/span><br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"font-family: courier new,courier\"><strong>&lt;Control Type=&#8221;FieldControl&#8221; FieldName=&#8221;Microsoft.VSTS.Common.Rank&#8221; Label=&#8221;Ran&amp;amp;k:&#8221; LabelPosition=&#8221;Left&#8221; NumberFormat=&#8221;WholeNumbers&#8221; MaxLength=&#8221;10&#8243; \/&gt;<\/strong><br \/><\/span><span style=\"font-family: courier new,courier\">&lt;\/Column&gt;<\/span><\/p>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">. . . <\/span><br \/><span style=\"font-family: courier new,courier\">&lt;\/FORM&gt;<\/span><\/p>\n<ol>\n<li value=\"4\">Import the updated bug definition.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">witadmin importwitd \/collection:&#8221;http:\/\/<em>MyServer<\/em>:8080\/tfs\/DefaultCollection&#8221; <br \/>\/p:<em>MyProject<\/em> \/f:<em>Directory<\/em>\/bug.xml<\/span><\/p>\n<h2>Add the bug work item type to the Requirements Category<\/h2>\n<ol>\n<li>Export the categories definition.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">witadmin exportcategories \/collection:&#8221;http:\/\/<em>MyServer<\/em>:8080\/tfs\/DefaultCollection&#8221; <br \/>\/p:<em>MyProject<\/em> f:<em>Directory<\/em>\/categories.xml<\/span><\/p>\n<ol>\n<li value=\"2\">Add bug to the Requirements Category.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">&lt;CATEGORY refname=&#8221;Microsoft.RequirementCategory&#8221; name=&#8221;Requirement Category&#8221;&gt;<\/span><br \/><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp; &lt;DEFAULTWORKITEMTYPE name=&#8221;User Story&#8221; \/&gt;<\/span><br \/><strong><span style=\"font-family: courier new,courier\">&nbsp;&nbsp;&nbsp; &lt;WORKITEMTYPE name=&#8221;Bug&#8221; \/&gt;<\/span><\/strong><br \/><span style=\"font-family: courier new,courier\">&lt;\/CATEGORY&gt;<\/span><\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p style=\"padding-left: 30px\"><span style=\"color: #0000ff\"><strong>NOTE<\/strong><\/span>: It&#8217;s OK for the bug work item type to belong to two categories&mdash;the Bug Category and the Requirements Category.&nbsp; It just can&#8217;t belong to both the Task Category and the Requirements Category.<\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<ol>\n<li value=\"3\">Import the categories file.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><span style=\"font-family: courier new,courier\">witadmin importcategories \/collection:&#8221;http:\/\/<em>MyServer<\/em>:8080\/tfs\/DefaultCollection&#8221; <br \/>\/p:<em>MyProject<\/em> \/f:<em>Directory<\/em>\/categories.xml<\/span><\/p>\n<h2>Confirm that you can add bugs to the product backlog<\/h2>\n<ol>\n<li>Open the product backlog page, or refresh the page if it is already open.<\/li>\n<li>You should be able to select either task or bug as a linked work item to a user story.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/5611.add_bug_to_product_backlog.jpg\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/02\/5611.add_bug_to_product_backlog.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>Learn more about &#8230;<\/h2>\n<ul>\n<li>Using <strong>witadmin<\/strong> from <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/vstudio\/dd236914.aspx\">witAdmin: Customize and Manage Objects for Tracking Work Items<\/a>.<\/li>\n<li>Customizing agile planning pages from <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/vstudio\/hh543813.aspx\">Customize the Backlog and Board Pages Using Process Configuration<\/a>.<\/li>\n<li>Modifying work item types and related objects from <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/vstudio\/dd286521.aspx\">Customize Team Projects and Processes<\/a>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<hr style=\"width: 100%\" width=\"100%\" \/>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some teams like to track bugs as tasks and other teams track them as backlog items, such as user stories or requirements. If you&rsquo;re using a Scrum project, bugs are already in your backlog. However, if your team project was created using the Agile, CMMI, or other process template, bugs don&#8217;t appear on the task [&hellip;]<\/p>\n","protected":false},"author":61,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[227,1],"tags":[],"class_list":["post-9715","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-agile","category-devops"],"acf":[],"blog_post_summary":"<p>Some teams like to track bugs as tasks and other teams track them as backlog items, such as user stories or requirements. If you&rsquo;re using a Scrum project, bugs are already in your backlog. However, if your team project was created using the Agile, CMMI, or other process template, bugs don&#8217;t appear on the task [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/9715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=9715"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/9715\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=9715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=9715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=9715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}