Query all stories/tasks under epics assigned to a specific user

I would like to make a query that shows all stories/tasks that fall under epics assigned to specific users. I am trying to develop a board using a filter to display the status of all epics assigned to me only. Various other users may be assigned to stories/tasks under these epics, but I would still like to be able to see them on my board so that I can track their statue.

2 answers

0 votes
Tayyab Bashir Community Champion Oct 14, 2017

Try this:

issuetype in (Story, Task) and assignee = currentUser() and "Epic Link" is not EMPTY

Thanks Tayyab. This would only pull stories and tasks assigned to the current user. Instead, what I want to do is see all stories/tasks that fall under epics where the epic is assigned to me. That way I could build a kanban board using the query that would allow me to see how all stories/tasks are progressing, regardless of how many different epics I am tracking.

Tayyab Bashir Community Champion Oct 15, 2017

Hi,
You can replace currentUser() with your own user name.

If you have ScriptRunner installed then you can use the following query, 

issueFunction in issuesInEpics('assignee = abcd') and issuetype in (story, task)

Replace assignee = 'abcd' with your own username. 

0 votes

Hi Aaron,

Are you using Cloud or Server?

If you are in Cloud you can try the following:

project = JRA and parentEpic = JRA-123

This will "return all the issues in the specified epic(s) AND their sub-tasks."  Take a look at Dave Meyer's response in JQL to show all issues AND subtasks in the Epic.

In Server you may want to look at ScriptRunner.

Cheers,

Branden

Thanks Branden,

The query example you provided would work only for a specified epic (or epics if I listed them all). I was looking for a query that would change organically as epics were assigned to me.

Thanks again for attempting to answer.

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 ...

2,864 views 12 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