如何在VSTS中启用用户故事下任务的已完成工作与初始估算汇总?
Hey there, let's break down exactly how to get those Completed Work and Original Estimate fields rolling up in VSTS (now Azure DevOps) — I know the official docs can be a bit vague, so let's make this concrete.
First, let's confirm permissions: you'll need Project Administrator access (or at least permissions to customize work item processes) to make these changes. If your partial admin rights cover project-level work item customization, you're good to go; if not, you'll need to loop in a full project/organization admin.
Step 1: Configure Field Rollup in Process Settings
This is where you enable the rollup behavior at the work item type level:
- Open your VSTS project, click the gear icon in the bottom-left corner to go to Project Settings.
- Navigate to Boards > Process in the left menu.
- Select the process template your project uses (e.g., Scrum, Agile, or a custom process).
- Find the work item type you want to enable rollup for (like User Stories, which are parent items for Tasks) and click into it.
- Locate the Completed Work and Original Estimate fields in the list. For each field:
- Click the pencil icon to edit the field settings.
- Scroll to the Rollup behavior section.
- Select Sum as the rollup method (this will add up values from child work items).
- Check the box for Allow rollup to activate the feature.
- Save your changes for each field.
Step 2: Verify Rollup in Tree Queries
Once the field settings are updated, you'll need to make sure your queries are set to display the rolled-up values:
- Create or open a Tree of work items query (this is the only query type that supports rollup).
- Click the Columns button at the top of the query results.
- For both Completed Work and Original Estimate, click the dropdown next to the field name and select Sum from the rollup options.
- Save the query. Now, when you run it, parent work items will show the summed total of their child items' Completed Work and Original Estimate.
Quick Note
If you don't see the rollup options in the process settings, it's likely a permissions issue — reach out to your project admin to grant you the necessary access to customize work item processes.
内容的提问来源于stack exchange,提问作者Macin

