문제

Is there a way in which we can add rules in the workflow diagram of the work item (Task) so that when the task is closed it will automatically change the completed work to original estimate and remaining work to zero.

I am using the process editor in TFS 2010.

도움이 되었습니까?

해결책

I thought it did this by default - at least for Tasks in the MSF Agile 5.0 process template it does.

Anyway, what you need is a rule on the Transition from Active to Closed to copy some values and and empty the remaining work:

<TRANSITION from="Active" to="Closed">
    <!--Reasons snipped -->
    <FIELDS>
        <!--Other fields snipped -->
        <FIELD refname="Microsoft.VSTS.Scheduling.RemainingWork">
          <EMPTY />
        </FIELD>
        <FIELD refname="Microsoft.VSTS.Scheduling.OriginalEstimate">
          <WHEN field="Microsoft.VSTS.Scheduling.OriginalEstimate" value="">
            <COPY from="field" field="Microsoft.VSTS.Scheduling.CompletedWork" />
          </WHEN>
        </FIELD>
        <FIELD refname="Microsoft.VSTS.Scheduling.CompletedWork">
          <WHEN field="Microsoft.VSTS.Scheduling.CompletedWork" value="">
            <COPY from="field" field="Microsoft.VSTS.Scheduling.OriginalEstimate" />
          </WHEN>
        </FIELD>
    </FIELDS>
</TRANSITION>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top