Jira Quick-filter to show all task with subtasks assigned to current user
Asked Answered
F

4

14

Currently, I have a quick filter to show me my task that does this:

assignee = currentUser()

This works ok, but doesn't show me tasks that are assigned to someone else, but have subtasks assigned to me. Is it possible to make it show me both tasks assigned to me, and tasks that have subtasks assigned to me?

Fanechka answered 1/2, 2013 at 14:58 Comment(0)
F
13

Create a filter for all of your subtask from the following JQL:

issuetype in subtaskIssueTypes() and assignee = currentUser()

Then, using Craftforge JQL Functions Plugin, use the following JQL to find their parents:

issue in parentIssuesFromFilter("filter name or its id")
Fula answered 1/2, 2013 at 16:50 Comment(0)
C
2

The following query will return all parent tasks, which have sub-tasks assigned to the current user. (The parent task need not be assigned to current user)

issueFunction in parentsOf("assignee = currentUser() ")

Note: issueFunction requires the ScriptRunner plugin and it's not free.

Cutwater answered 23/8, 2017 at 12:0 Comment(0)
T
0

In addition to @Kuf's answer, it's sometimes much simpler to write the whole thing in one query especially with Swimlanes or Quick-Filters in Greenhopper, rather than creating and saving custom filter.

For instance, to show Un-finished Issues or Sub-tasks in one quick-filter on Greenhopper:

status!=Closed or issue in parentIssuesFromQuery("issuetype in subtaskIssueTypes() AND status!=Closed ")
Tasset answered 17/2, 2013 at 18:36 Comment(0)
O
-1

Navigate to Issues (in header) > Search for issues, then enter your search criteria.

Oscoumbrian answered 21/4, 2017 at 8:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.