Has any one used TFS AGGREGATOR for implementing below scenarios?

折月煮酒 提交于 2019-12-11 22:15:55

问题


  1. When any child link is set to ACTIVE Parent should transit from "Proposed" to "Active"
  2. If any child is active under the parent, the parent work item will not be set to "Closed" unless all child's are set to Closed or resolved.

回答1:


The first item is achievable with TFS Aggregator.

Here's an example configuration you could use:

<!--When any Tasks are In Progress set the parent (PBI) to In Progress -->
<AggregatorItem name="Update InProgress" operationType="String" linkType="Parent" linkLevel="1" workItemType="Task">
  <Mappings>
    <Mapping targetValue="In Progress" inclusive="Or">
      <SourceValue>In Progress</SourceValue>
    </Mapping>
  </Mappings>
  <TargetField name="State"/>
  <SourceField name="State"/>
</AggregatorItem>

For the second item, you could change the mapping to use inclusive="and" and try something similar. This won't prevent someone changing the state in the parent work item manually.



来源:https://stackoverflow.com/questions/18779922/has-any-one-used-tfs-aggregator-for-implementing-below-scenarios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!