Is it possible to use JQL to pull all subtasks based on a parent's value?

I've logged a support issue and tried to view Atlassian documentation (however, / is a 503 error) to answer my question....

I need to pull all subtasks based on a parent issues field value. I actually have the same value on the subtask - but, the JQL results don't include the subtasks. That seems to be another bug if you have a custom field with different field configuration and the JQL is using one of those fields to evaluate. It only applies to parent issues, not subtasks.

So, I have this dilema in that I need all subtasks with this field value and the parent has it. So...does anyone know how I might write JQL to get these?

1 answer

1 accepted

0 vote

You cant' use any plugins which support this in onDemand. However, I am not sure why it is not working for you if you have the same value on the subtask as well!

"custom field name" = "value you search for" and issuetype in subtaskIssueTypes()

should fetch you the subtask with that value I guess?

It should work, as you say. I can pull subtasks based on another custom field, but not this custom field. It's not understanding the multiple field configurations for this field and only applies to the parent issue. You also cannot bulk edit this field -- doesn't appear on the screen in either the available or unavailable actions, even though all issues are all using the same field configuration. Consequently, the reason I'm stuck.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

387 views 1 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