It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Query that shows all subtasks for stories assigned to a user

Hi all,

I could do with some help here - I'm struggling even getting my head round the JQL required for this. The filter I want to create will be used on a greenhopper rapid board but could be used elsewhere too.

I want to do this: Filter by all user stories assigned to me and also display all the subtasks that are associated with that story (but maybe unassigned)

The first part is easy -

assignee = currentUser()

But I have no idea what the next step will be

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

aha, yes that's possible isn't it - create a filter to find only issues that are assigned to current user, share that filter with the project and then reference it in the quick filter.

I'll get it a go and let you know how I get on.

This has produced the error I was expecting, it's only showing the sub-tasks and I want to get the sub-tasks and the parent.

There is another feature of that plugin which is

issue in parentIssuesFromtFilter ("")

But you can't use both in the same query...or I can't get it to work.

Any suggestions?

Hi

could you try to add another part to your filter with an or statement that will select the stories

something like this : <current sub task filter> or (assignee = currentUser() and issuetype = Story)

Best regards,

Peter

AHA! I was being a bit dense - I was trying to bind the two with AND. Changed it to OR and it was fine.

This is the complete query

issue in parentIssuesFromFilter("Issues assigned to current user") OR issue in subtaskIssuesFromFilter("Issues assigned to current user")

Community showcase
Posted in Europe

Drittes Atlassian Community Event 2019 in Hamburg

Hallo liebe Hamburger Community, am 14.11.2019 um 18:00 Uhr findet unser nächstes Event statt:  https://aug.atlassian.com/events/details/atlassian-hamburg-presents-drittes-treffen-der-atlass...

19 views 0 0
View post

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you