You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I want to see all sub-tasks for unfinished tasks or fnished tasks with unfinished sub-tasks. This allows seeing which parts have been completed and which haven't.
I expect the following JQL to return true for sub-tasks that have parents with unfinished sub-tasks:
type = Sub-task AND parent in parentsOf("status not in (Closed, Done, Resolved)")
However, the parent in parentsOf(...) clause does not seem to work. What's the trick?
Hello,
This should work to get you the parents of any unresolved subtasks, which I think is what you're needing.
issueFunction in parentsOf("status not in (Closed,Done,Resolved)")
If it's not working for you, let me know. :)
Jenna
Hi Jenna,
your suggestion selects the parents themselves, not the sub-tasks. I want to see all the sub-tasks (finished and unfinished).
Can you guide my why the parent-comparison in my code is not working as expected?
Best regards,
Henning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you may want to use the 'subtasksOf()' function then.
parentsOf() is getting the parents of subtasks with a status that isn't Closed, Done, or Resolved.
Sorry if I'm misunderstanding your question.
Jenna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your quick reply. I tried that one as well ;) subtasksOf(...) does only work if the parent task has a consistent state (finished only if all sub-tasks are finished). If there are unfinished tasks i wouldn't see them based on this function and it's just too easy to mask an error.
The function i am aiming for has one more level of indirection: Display all sub-task that belong to a task, which has unfinished tasks. I found no other theoretical way than via the subtask-parent-subtask relationship.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see, I wasn't understanding the issue completely. In that case, you should be able to stack subtasksOf() and parentsOf() and get what you're needing.
Please try this and let me know if it catches all you're needing, it should return all subtasks if one subtask of the parent is unresolved.
issueFunction in subtasksOf("issueFunction in parentsOf('status not in (Closed, Done, Resolved)')")
Jenna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
During my 17 years as a coach, mentor, and trainer of Agile teams, I’ve participated in hundreds of Agile planning meetings. The end result was a wall of backlog items annotated by an explosion of co...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.