jira - 基于列值的 JIRA 结构变量
问题描述
我的结构允许我通过基于百分比的里程碑跟踪来维持挣值。我有展示活动里程碑的专栏(主要基于行动的状态)。我有里程碑专栏。然后我将 % 值关联起来,以根据操作所在的里程碑进行总结。
with weight1 = 0.6:
with weight2 = 0.2:
with weight3 = 0.15:
with weight4 = 0.05:
IF(MATCH(Summary, "*Formal*")=1; (weight1 = 0.2 AND weight2 = 0.4 AND weight3 = 0.0 AND weight4 = 0.4))
AND
IF(MATCH(milestone4; "*Done*"); weight1+weight2+weight3+weight4;
MATCH(milestone3; "*Done*"); weight1+weight2+weight3;
MATCH(milestone2; "*Done*"); weight1+weight2;
MATCH(milestone1; "*Done*");weight1;0)
问题是当摘要中有“正式”时,权重值不会改变。有没有更好的方法来获得基于里程碑的条件变量值?
解决方案
在与其他 JIRA 用户反复讨论之后,我们想出了这个问题的解决方案。这只是对语法的重新排列,以强制 JIRA 使用正确的值。
with weight1 = IF(MATCH(Summary, "*Formal*")=1; 0.2; 0.6):
with weight2 = IF(MATCH(Summary, "*Formal*")=1; 0.4; 0.2):
with weight3 = IF(MATCH(Summary, "*Formal*")=1; 0.0; 0.15):
with weight4 = IF(MATCH(Summary, "*Formal*")=1; 0.4; 0.05):
IF(MATCH(milestone4; "*Done*"); weight1+weight2+weight3+weight4;
MATCH(milestone3; "*Done*"); weight1+weight2+weight3;
MATCH(milestone2; "*Done*"); weight1+weight2;
MATCH(milestone1; "*Done*");weight1;0)
我已经在我的结构中对此进行了测试,并且效果很好。
推荐阅读
- java - 将java中的半角字符串转换为全角
- elasticsearch - ElasticSearch:将新记录插入现有索引
- javascript - 使用 React 钩子每 X 秒显示一个不同的值
- android - Unity Android 动态壁纸中的 WallpaperManager 崩溃
- android - 安卓摇篮 | 如何仅为活动 ABI 构建调试 apk
- amazon-web-services - Cloudformation IF 问题
- kubernetes - Kubernetes:如何在 configMap 中设置布尔类型变量
- python - Pandas - 根据来自另一个表的具有相同密钥的不同电子邮件扩展表
- r - 如何在 R 中使用 left_join 函数避免重复
- java - 从 android studio API 28 连接到解析服务器的 i/o 失败