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

This widget could not be displayed.

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
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/ ExecStop=/opt/jira/bin/ TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,488 views 10 12
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