有更好的方法来编写这个 Jira 查询吗?

问题描述 投票:0回答:1

这段代码有什么问题:

issueFunction in linkedIssuesOf("type = Epic", "is epic of") AND 
component is not EMPTY AND "Epic Link" is not EMPTY AND issueFunction 
in aggregateExpression("Total Stories", "count()", "issuetype = Story") 
AND issueFunction in aggregateExpression("Done Stories", "count()", 
"issuetype = Story AND statusCategory = Done") AND issueFunction in 
aggregateExpression("In Progress Stories", "count()", "issuetype = 
Story AND statusCategory = 'In Progress'") AND issueFunction in 
aggregateExpression("To Do Stories", "count()", "issuetype = Story AND 
statusCategory = 'To Do'") ORDER BY "Epic Link"

我执行了上述查询,但收到错误

filter components jira epic
1个回答
0
投票

函数 aggregateExpression 不是这样工作的。它不需要三个参数。

它需要两个参数:

issueFunction in aggregateExpression(label, expr)

例如: 此查询为您提供项目“CLITRE”中的问题列表。并显示用户“myedes”报告的问题数量。

您还可以使用多个参数来显示许多信息。 查询应该是这样的:

issueFunction in aggregateExpression(label1, expr1, label2, expr2, …​)

参见参考

© www.soinside.com 2019 - 2024. All rights reserved.