List all JIRA tasks that are not blocked by other tasks

和自甴很熟 提交于 2020-01-12 07:44:08

问题


Using JIRA 4.4.3,

I've created a filter that list all the tasks that: - The current user is assigned to; - are Open; - are not blocked by any other task.

To make it clear: the task that are ready for a user to work on.

We've installed the Craftforge JQL Functions plugin, and I've come with the following JQL query:

assignee = currentUser()
AND status in (Open)
AND issue NOT IN linkedIssuesFromFilter("All Issues", "Blocks", "Outward")

The problem is that when an issue that was blocking another issue is resolved, the "Blocks" link still exist -- and I don't want to delete it. But my query doesn't check if the linked issue is closed/resolved or not.

How can I add a condition "inside the IN statement" that will only return queries that are blocking the current task AND that are still OPEN.


回答1:


Use this clause from http://www.j-tricks.com/jqlt-links-functions.html:

issue not in linkedIssuesInQuery("status = Open", "is blocked by")



回答2:


If you have the ScriptRunner add-on, you can use it to do this:

resolution = unresolved AND assignee = currentUser() AND (issueFunction in linkedIssuesOf("resolution is not empty", blocks) OR issueFunction not in hasLinks("is blocked by"))



回答3:


I've created a new filter named "All active issues" that list all issues that are open, in progress or re-openned.

And I've used that new filter in my query instead of "All Issues".

Seems solved :)



来源:https://stackoverflow.com/questions/9162667/list-all-jira-tasks-that-are-not-blocked-by-other-tasks

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!