如何在(Jira Query Languange)中编写查询以按周数限制问题?

时间:2019-01-22 06:56:36

标签: jira jql

我将查询写成Jira Query Language

assignee was brad and status was WIP DURING ("2019/1/20", "2019/1/26")

可以,但是我宁愿写

assignee was brad and status was WIP DURING week("2019", 4)

这很容易制定。在JQL中可以吗?

1 个答案:

答案 0 :(得分:0)

不幸的是,JQL没有提供返回给定日历周时间段的函数。

为了不必总是查找每个日历周的开始/结束日期,可以考虑使用startOfYear()函数的解决方法。在这种情况下,您的示例将是:

assignee was brad and status was WIP DURING (startOfYear("4w"), startOfYear("5w"))