How to find sub-tasks that have the same assignee as the parent task?

I have a team that is looking for a filter that will return specific sub-tasks of a parent task that have been completed.  The problem that I have run into is that the assignee of the sub-task needs to match the parent task.  Also, I need this to display a list of all of the assignees, not just a specific one.  There are over 400 individual assignees, and the manager wants to see the results as a list.  Here is what I have so far and it gets me about 80%.

project = oei AND issueFunction in subtasksOf("project = oei and status = open") AND "OE Component" in (cascadeOption(Education, "Lean Leader"), cascadeOption(Education, "Lean Introduction (2 days)"), cascadeOption(Education, "Innovation Awareness (2 days)"), cascadeOption(Exposure))

1 answer

This is what I found when querying the database directly. 

select, j.issuenum, j.PROJECT, j.ASSIGNEE, j.SUMMARY, j.issuestatus
from jiraissue j, issuelink l
where j.ID = l.DESTINATION
and j.PROJECT = 10500
and j.resolution is not null
and j.ASSIGNEE is not null
and l.SOURCE in (select from jiraissue j2
			where j2.issuetype = 14
			and j2.RESOLUTION is null
			and j2.ASSIGNEE is not null)
and in (select cfv.ISSUE from customfieldvalue cfv
				where exists (select * from customfieldoption cfo
				where cfo.ID in (11118, 11121, 11122, 11123, 11125, 11132, 17201)
				and cfv.Stringvalue = cfo.ID)
				and cfv.CUSTOMFIELD = 11004)

I need to see if this can happen in JQL and saved as a filter so that it can be used as a dashboard.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,043 views 13 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot