通过故事计数和计划估计颜色编码算法完成的集会百分比 [英] Rally percent done by story count and plan estimate color coding algorithm

查看:46
本文介绍了通过故事计数和计划估计颜色编码算法完成的集会百分比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

投资组合项目的进度条相关,但现在我们有 SDK 2.0

Related to Progress Bars for Portfolio Items, but now we have the SDK 2.0

有没有办法查看显示故事计数完成百分比和故事计划估计完成百分比的算法?

Is there a way to see the algorithm for displaying percent done by story count and percent done by story plan estimate?

我有一个接近的尝试,并且在大多数情况下都有效,但有时当我将其与拉力赛中的实际信息进行比较时,颜色会有所不同.我希望这与我的应用保持一致:

I have an attempt which is close, and works in most cases, but sometimes when I compare it to the actual information in rally, the colors differ. I would like this to be consistent for my app:

if (recordData.PercentDoneByStoryPlanEstimate === 1) {                                                                           //All work has been accepted
    return App.colorCodes.grey;
} else if (dateDifference <= 0) {                                                                                                //End date has passed and work is not complete
    return App.colorCodes.blank;
} else {
    if (daysSinceStart / dateDifference <= recordData.PercentDoneByStoryPlanEstimate)             return App.colorCodes.green;  //On-track
    else if (daysSinceStart / dateDifference <= recordData.PercentDoneByStoryPlanEstimate + 0.25) return App.colorCodes.yellow; //Within 25% of planned velocity
    else                                                                                          return App.colorCodes.red;    //Off-track, not within 10%
}

此外,完成百分比 SDK 2.0 中的 ui 组件也无法正确为卡片着色,并且无法提供自定义着色功能 - 我可以提供一个百分比,但我可以让它像本地集会百分比一样显示吗??

Also, the Percent Done ui component in the SDK 2.0 does not color the cards correctly either, and there is no way to provide a custom coloring function - I can provided a percentage, but can I get it to display like a native rally percent done would?

推荐答案

如果您想了解 Percent Done 组件的数学是如何生成的,您可以查看 健康颜色计算器 或直接查看来源.这些组件应显示在 Rally 中表示的计算(因为这是我们使用的代码!).

If you want to see how the math is generated for the Percent Done component you can see the Health Color Calculator or look directly at the source. These components should show the calculations as they are represented in Rally (since this is the code we use!).

这篇关于通过故事计数和计划估计颜色编码算法完成的集会百分比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆