The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

George Carvill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 26, 2013

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
George Carvill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 26, 2013

Thanks.

Turns out I have solved my immediate problem with the Craftforge JQL functions plugin: https://plugins.atlassian.com/plugin/details/31601

A nice person at Atlassian support pointed me here:

http://stackoverflow.com/questions/5153024/filter-to-show-sub-tasks-of-a-filtered-list-of-parent-tasks

Ramiro P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 26, 2013

nice... taking note about this plugin :D

1 vote
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 26, 2013

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

George Carvill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 26, 2013

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

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 27, 2013

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

0 votes
Ramiro P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 26, 2013

Hi George, you could use the JQL tricks plugin: https://marketplace.atlassian.com/plugins/com.j-tricks.jql-plugin

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

Subtask Functions

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

Atlassian Community Events