Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,087
Community Members
 
Community Events
176
Community Groups

JQL: pull subtask within a task

Hi,

I'm trying to pull subtask(s) within a task and display them in a dashboard I don't have access to ScriptRunner(I have seen is possible with this).

What I have is a query (that I'm inserting with "insert jira issue/filter" within confluence) that is pulling from a Jira kanban board all the tasks that are currently in progress and another query that is pulling the subtask(s) for a given manuallly added ID. Both querys do the job(picture attached) but I would love to have just one query(if posssible) and not to manually add the task ID to pull the subtask(s)

  • Query for task
    • project in ("ProjectName") and status in ( "In Progress") and issuetype in (task)
  • Query for subtask
    • issuekey in (childIssuesOf(abc-123)) and status in ("In Progress") 

The idea that I have in mind is to add/show a column with the subtask(s) that are as well in progress for the parent task

idea.png

I would appreciate your help on this one

1 answer

1 accepted

1 vote
Answer accepted

@MFMM -

Unfortunately, it is not possible to achieve what you wanted out of the box.  You have to have an add-on such as ScriptRunner for Jira because the additional JQL functions that it provides.  Those additional JQL functions allow you to construct a single JQL statement.   In addition, it is not possible to list the resulting display in the UI that you provided in the image screenshot.

Sorry.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

Thank you so much for the quick reply

Do you think somethink like this could be done?

https://community.atlassian.com/t5/Jira-Service-Management/Include-Parent-Key-in-Query-Jira-Cloud/qaq-p/2098128

 

Regards!

@MFMM -

Looking at the posting you provide.  Yes, it is doable.  Essentially, it is adding a custom field to store the parent issue key and then it is populated by the automation for Jira rule setup.  Afterward, this becomes a part of your issue's metadata (i.e. for Subtask issues).

It is not ideal, since by default all subtasks' SUMMARY are already appended with the parent issue key.

2022-12-16_9-24-34.png

Best, Joseph

Thank you for the answer!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events