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.

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

1 vote

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 Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

4,291 views 20 12
View question

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