How can I search of child issues from non-parent list

I have a filter of all issues with a certain fixVersion. My team updates the parent story, but not the child. I want to be able to take that filtered list and with a click or two, be able to filter with all the children so I can bulk update the fixVersion. this is how we get work off of our Kanban boards and it would be great if I didn't have to create a new filter by typing in all the parent stories.

Example:

1st filter --> fixVersion = 'xyx" 

Resutls --> IssueKey = 123, 234, 345, 456

2nd filter --> parent in (123, 234, 345, 456)

Is there a way I can get Jira to do this conversion for me without retyping the 2nd filter? I have dozens of stories/issues in a fixVersion. Please advise. 

1 answer

0 votes

Hi Penny,

Within the native Jira code, I don't believe there is currently a way for JQL to do be able to do this.   The parent field is explicitly expecting issue keys to be input there.  Unfortunately this field does not permit us to pass it another existing filter.  

However I believe you can more easily find these issues if you were to use a 3rd party plugin like Scriptrunner.  This plugin provides a number of other JQL functions, specifically it has improved functions that allow you to use subqueries in regards to subtasks and parent issue relations.

If you had scriptrunner installed with Jira, you could then run a single JQL query such as:

issuefunction in subtasksOf("fixVersion = 1.0")

This query would only return the subtasks of issues that have a fixversion value of "1.0", not the parent issues themselves with that fixversion.

 

I hope this helps,

Regards,
Andy 

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,968 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