简体   繁体   English

JIRA:高级搜索:JQL

[英]JIRA : Advanced Search : JQL

Issue: 问题:

Can not view issues that have been marked as 'closed' or 'done' within the last 30 days. 无法查看过去30天内标记为“已结束”或“已完成”的问题。

Tried: 尝试:

assignee in (XX, YY) OR assignee in membersOf(AA) AND status in (Closed, Done) AND updatedDate = startOfDay(-30d)

Objective: 目的:

I need to select issues that are either closed or done be individuals and a group over the last 30 days. 我需要选择在过去30天内已关闭或已完成的问题,无论是个人还是小组。 Would be so much better if there were a closedDate function here. 如果这里有一个closedDate函数,那就更好了。

Three suggestions which I think may solve your problem: 我认为可以解决您的问题的三个建议:

  1. Use parentheses around your assignee condition which uses OR operator to get only issues from assignees "XX", "YY" and members of "AA". 在使用OR运算符的受让人条件周围使用括号,以仅从受让人“ XX”,“ YY”和“ AA”成员处获得问题。 Otherwise you would get ALL issues from assignees "XX" and "YY". 否则,您将从受让人“ XX”和“ YY”获得所有问题。

  2. Try to use resolutiondate instead of updatedDate , because the last one could have been changed after resolution. 尝试使用resolutiondate而不是updatedDate ,因为解决后最后一个可能已更改。

  3. Use >= instead of = to get issues within the last 30 days. 使用>=代替=可以获取最近30天内的问题。 Otherwise you would only get issues resolved at this date, if any because of the timepart in this timestamp value. 否则,由于该时间戳记值中的时间段,您将只能在此日期解决问题(如果有)。

The final query could look like this: 最终查询如下所示:

(assignee in (XX, YY) OR assignee in membersOf(AA)) AND status in (Closed, Done) AND resolutiondate >= startOfDay(-30d)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM