How to write a query based on value in Issue's parent's fields

Is there a way to do a query that says, show me the subtasks where the subtask parent's field x has value "y"

3 answers

1 accepted


Turns out I have solved my immediate problem with the Craftforge JQL functions plugin:

A nice person at Atlassian support pointed me here:

nice... taking note about this plugin :D

1 vote

Script runner (free) has similar functions: subtasksOf, parentsOf. You might find that the script runner versions are significantly faster than the other ones.

You may well be right, but we haven't gone down the ScriptRunner path yet.

You don't need to actually use the scripting functionality to get all the other stuff, ie jql functions, workflow functions etc.

Hi George, you could use the JQL tricks plugin:

Sadly it's not free, but it has exactly what you need:

Subtask Functions

  • parent(JqlQuery) <--------
  • subtask(JqlQuery)
  • hasSubtasks([subtaskType])

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

189 views 12 3
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