How to query on a parent's component value

HI, We are a large project that uses components to tag the issues with the appropriate team. Issues are then assigned to an epic to identify the user feature they correspond to.

The Scrum board queries uses the component to find issues for the team.

Problem
When developers create subtasks on issues they often forget to assign a component. This means the subtasks don't show on the board and we are therefore having problems managing delivery

I see 2 solutions

1. make subtasks inherit the parent component. I believe this is now a deprecated feature on cloud and I don't see a way to do this without a plugin and not sure if available on the cloud

2. amend the board query so that it includes issues with the component AND issues that have a parent with that component. I see syntax such as "parent in issuelist" but I'm not sure how to make it work as there is little in the help and nothing on any forums

Any advice gratefully received!

1 answer

0 votes

In regards to number two, you could do this with Scriptrunner.  It does allow you to use some additional JQL functions that can look at parent issues values or subtask issues values in regards to which issues to return.  The native JQL in Jira can't really look at specific values on related issues like this.

But if you had scriptrunner in your Jira Cloud instance, you could create a JQL filter like this:

issueFunction in subtasksOf("project=XYZ and Component=ABC")

This specific JQL statement would then return just the subtasks whose parent issues are in that project and have that specific component.

There is more details of how this can work in Scriptrunner enhanced search documentation: Subtasks.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

432 views 1 14
Read article

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