[英]JIRA JQL - Find issues with more than X days in Status
I want to show all issues where it has been in a current status for more than X days - is this possible? 我想显示所有已超过X天的状态的问题-这可能吗?
We have this workflow: Registered
=> Analyze
=> Planned
... etc. The ticket can be in Registered
for 3 weeks and it can be 3 weeks in Analyze
without any problems. 我们有以下工作流程:已
Registered
=> Analyze
=> Planned
...等等。该票证可以在已Registered
使用3周,而在Analyze
可以使用3周而没有任何问题。
Currently I am using this JQL to show tickets that have been more than 3 weeks in Analyze
: 目前,我正在使用此JQL在
Analyze
显示已超过3周的票证:
project = MyProject AND status = Analyze AND created <= -6w
This is wrong due to so many reasons and it does not look at the time in the current transition state - nor does it take in to account that it can be pushed back from Planned
to Analyze
and then allow a new 3 weeks analyze period. 由于许多原因,这是错误的,它不考虑当前过渡状态下的时间-也没有考虑到可以将其从“
Planned
推迟回“ Analyze
,然后允许一个新的3周分析期。
Is the above possible to filter in JIRA? 是否可以在JIRA中过滤以上内容? I don't have the possibility to use the JIRA REST interface - only the builtin JQL.
我没有使用JIRA REST接口的可能性,只能使用内置的JQL。
I am running with JIRA version 6.4.5. 我运行的是JIRA 6.4.5版。
With Script Runner plugin I'd create a new scripted field that would just return the number of days since the last status change, with a Number field template, and Number Range Searcher. 使用Script Runner插件,我将创建一个新的脚本字段,该字段将返回自上次状态更改以来的天数,一个Number字段模板和Number Range Searcher。 The
的
def items = com.atlassian.jira.component.ComponentAccessor.changeHistoryManager.getAllChangeItems(issue).findAll{it.field=="status"}
will return ChangeHistoryItem
s for Status field. 将为Status字段返回
ChangeHistoryItem
。 Take the last one and use its getCreated()
to find Timestamp
. 使用最后一个,并使用其
getCreated()
查找Timestamp
。 If the list is empty, it means that the issue is in the first step of the workflow, use its issue.getCreated()
. 如果列表为空,则表示问题在工作流程的第一步,请使用其
issue.getCreated()
。 Test. 测试。 Re-index.
重新编制索引。 Search.
搜索。 Use.
使用。
project = MyProject AND status = Analyze and not status changed during (-xd,now())
如果您想知道问题在哪个日期范围内以及状态何时连续发生,例如,在质量检查开始之前,将进行用户体验审查,并且我想知道用户体验审查中存在的问题以获取更多信息超过10天,我的JQL就可以
project = *your project* AND status changed to "Ux review" before startOfDay(-10) AND status changed from "UX Review" to "Ready to test" after startOfDay()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.