[英]JIRA JQL Search by Date - How to search Updated Issues on 1 Hour
These are my Requirements: 这些是我的要求:
I need to get Updated JIRA issues through RSS Every 1 Hour or Minutes. 我需要每1小时或每分钟通过RSS获得更新的JIRA问题。
So how can I filter the issues for my requirements? 那么如何根据我的要求过滤问题呢?
What I tried so far: 到目前为止我尝试了什么:
I have filtered like, updated > startOfDay(-0d) and updated < now() 我已经过滤了, 更新了> startOfDay(-0d)并更新了<now()
First time it returns the all issues i created or modified to me. 第一次它将我创建或修改的所有问题都返回给我。 But after that it returns all the previous issues along with modified issues.
但之后它会返回所有先前的问题以及修改过的问题。
I need only 我只需要
issues which modified between now() and before 1 hour.
在now()和1小时之前修改的问题。
How can I create a JQL query like this? 如何创建这样的JQL查询?
您需要以下内容:
updated >= "-1h"
Just write a query with where clause updated BETWEEN LocalDateTime.now().minusHours(1) AND LocalDateTime.now()
? 只需编写一个查询,其中where子句
updated BETWEEN LocalDateTime.now().minusHours(1) AND LocalDateTime.now()
?
Also you need to pass starting date (in my example LocalDateTime.now() from JodaTime is used) in order to get real start time instead of current time. 您还需要传递开始日期(在我的示例中使用JodaTime的LocalDateTime.now())以获得实际的开始时间而不是当前时间。 It may be few seconds later and you will not find several issues updated on the beginning of last hour.
可能是几秒钟之后,您将不会发现在最后一小时开始时更新的几个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.