基于列值的 JIRA 结构变量

JIRA Structure Variables Based on Column Values

我的结构允许我通过基于百分比的里程碑跟踪来维持挣值。我有一些列展示了 activity 的里程碑(主要基于操作的状态)。我有里程碑专栏。然后我关联 % 值以根据操作所处的里程碑进行总结。

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)

我已经在我的结构中对此进行了测试,它运行良好。